コード例 #1
0
        public static float GetFoldoutHeight(Expression expression, bool isExpanded, bool fullWidth, int minimumLines, int maximumLines)
        {
            var expressionHeight = StringDisplayDrawer.GetFoldoutAreaHeight(expression.Statement, isExpanded, fullWidth, false, minimumLines, maximumLines);
            var errorHeight      = isExpanded ? GetErrorHeight(expression) : 0.0f;

            return(expressionHeight + errorHeight);
        }