mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 00:08:51 -05:00
Fix incorrect box group layout
This commit is contained in:
parent
d35a28ba20
commit
42413a7a68
@ -18,7 +18,7 @@ namespace TriInspector.Elements
|
||||
|
||||
protected virtual float GetContentHeight(float width)
|
||||
{
|
||||
return base.GetHeight(width) + InsetTop + InsetBottom;
|
||||
return base.GetHeight(width);
|
||||
}
|
||||
|
||||
protected virtual void DrawHeader(Rect position)
|
||||
@ -32,7 +32,7 @@ namespace TriInspector.Elements
|
||||
|
||||
public sealed override float GetHeight(float width)
|
||||
{
|
||||
return GetContentHeight(width) + GetHeaderHeight(width);
|
||||
return GetContentHeight(width) + GetHeaderHeight(width) + InsetTop + InsetBottom;
|
||||
}
|
||||
|
||||
public sealed override void OnGUI(Rect position)
|
||||
|
Loading…
Reference in New Issue
Block a user