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);
 }