Exemple #1
0
        public override void Recalculate()
        {
            base.Recalculate();
            float defaultHeight = separatePage ? 40 : 30;
            float h             = dataList.Parent != null?dataList.GetTotalHeight() + defaultHeight : defaultHeight;

            Height.Set(h, 0f);
            if (Parent != null && Parent is UISortableElement)
            {
                Parent.Height.Set(h, 0f);
            }
        }
Exemple #2
0
        public override void Recalculate()
        {
            base.Recalculate();
            float defaultHeight = 30;
            float h             = dataListElement.Parent != null?dataList.GetTotalHeight() + defaultHeight : defaultHeight;   // 24 for UIElement

            h = Utils.Clamp(h, 30, 300 * scale);
            MaxHeight.Set(300 * scale, 0f);
            Height.Set(h, 0f);
            if (Parent != null && Parent is UISortableElement)
            {
                Parent.Height.Set(h, 0f);
            }
        }