protected override int GetHeightInternal()
        {
            if (FoldoutBlockUtility.IsUnFolded(this))
            {
                return(base.GetHeightInternal() + ReflectionDrawerStyles.singleLineHeight);
            }

            return(base.GetHeightInternal());
        }
示例#2
0
        protected override int GetHeightInternal()
        {
            if (hideGroup)
            {
                return(children.Sum(o => o.GetHeight()));
            }

            if (FoldoutBlockUtility.IsUnFolded(this))
            {
                return(children.Sum(o => o.GetHeight()) + ReflectionDrawerStyles.singleLineHeight);
            }

            return(ReflectionDrawerStyles.singleLineHeight);
        }
        protected override int GetHeightInternal()
        {
            int add = 0;

            if (drawAddButton)
            {
                add += ReflectionDrawerStyles.singleLineHeight;
            }

            if (hideGroup)
            {
                return(children.Sum(o => o.GetHeight()) + add);
            }

            if (FoldoutBlockUtility.IsUnFolded(this))
            {
                add += ReflectionDrawerStyles.singleLineHeight;
                return(children.Sum(o => o.GetHeight()) + add);
            }

            return(add);
        }