We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20faf1b commit bd1fc49Copy full SHA for bd1fc49
Editor/Elements/TriHeaderGroupBaseElement.cs
@@ -32,7 +32,17 @@ protected virtual void DrawContent(Rect position)
32
33
public sealed override float GetHeight(float width)
34
{
35
- return GetContentHeight(width) + GetHeaderHeight(width) + InsetTop + InsetBottom;
+ var headerHeight = GetHeaderHeight(width);
36
+ var contentHeight = GetContentHeight(width);
37
+
38
+ var height = headerHeight + contentHeight;
39
40
+ if (contentHeight > 0)
41
+ {
42
+ height += InsetTop + InsetBottom;
43
+ }
44
45
+ return height;
46
}
47
48
public sealed override void OnGUI(Rect position)
0 commit comments