Exemple #1
0
        public override int CalculateHeight(ViewInfo view)
        {
            if (IsHidden)
            {
                return(HiddenHeight);
            }

            var h = view.Font.Height;

            if (levelsOpen[view.Level])
            {
                h += InnerNode.CalculateHeight(view);
            }
            return(h);
        }
Exemple #2
0
 protected override int CalculateChildHeight(ViewInfo view)
 {
     return(InnerNode.CalculateHeight(view));
 }