Skip to content

Commit 66cbf23

Browse files
committed
BoxGroup spacing improvements
1 parent a0c5ca5 commit 66cbf23

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

Editor/Editors/TriEditor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ public static void OnInspectorGUI(Editor editor,
5959
inspector.Update();
6060
inspector.RunValidationIfRequired();
6161

62+
EditorGUIUtility.hierarchyMode = false;
63+
6264
using (TriGuiHelper.PushEditorTarget(serializedObject.targetObject))
6365
{
6466
inspector.Draw();

Editor/Elements/TriBoxGroupElement.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ protected override void DrawHeader(Rect position)
109109
switch (_props.titleMode)
110110
{
111111
case TitleMode.Foldout:
112-
headerLabelRect.x += 10;
113112
_expanded = EditorGUI.Foldout(headerLabelRect, _expanded, headerContent, true);
114113
break;
115114
case TitleMode.Toggle:

Editor/Elements/TriHeaderGroupBaseElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public abstract class TriHeaderGroupBaseElement : TriPropertyCollectionBaseEleme
1212
private readonly Props _props;
1313
private const float InsetTop = 4;
1414
private const float InsetBottom = 4;
15-
private const float InsetLeft = 18;
15+
private const float InsetLeft = 4;
1616
private const float InsetRight = 4;
1717

1818
private readonly List<TriProperty> _properties = new List<TriProperty>();

Editor/Elements/TriListElement.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ private void DrawHeaderCallback(Rect rect)
303303
}
304304
else
305305
{
306-
labelRect.x += 10;
307306
TriEditorGUI.Foldout(labelRect, _property);
308307
}
309308

0 commit comments

Comments
 (0)