CalculateMinimumWidth() 개인적인 메소드

Gets the minimum width that the box can be. *** The box can be as thin as the longest word plus padding
private CalculateMinimumWidth ( int calculationEpisode ) : float
calculationEpisode int
리턴 float
예제 #1
0
        internal void UpdateRootSize(CssBox box)
        {
            float candidateRootWidth = Math.Max(
                box.CalculateMinimumWidth(_episodeId) + CalculateWidthMarginTotalUp(box),
                (box.VisualWidth + this.ContainerBlockGlobalX) < CssBoxConstConfig.BOX_MAX_RIGHT ? box.VisualWidth : 0);

            _htmlVisualRoot.UpdateSizeIfWiderOrHigher(
                this.ContainerBlockGlobalX + candidateRootWidth,
                this.ContainerBlockGlobalY + box.VisualHeight);
        }
예제 #2
0
 internal void UpdateRootSize(CssBox box)
 {
     float candidateRootWidth = Math.Max(
         box.CalculateMinimumWidth(this.episodeId) + CalculateWidthMarginTotalUp(box),
         (box.VisualWidth + this.ContainerBlockGlobalX) < CssBoxConstConfig.BOX_MAX_RIGHT ? box.VisualWidth : 0);
     this.htmlContainer.UpdateSizeIfWiderOrHigher(
         this.ContainerBlockGlobalX + candidateRootWidth,
         this.ContainerBlockGlobalY + box.VisualHeight);
 }