Skip to content

Commit 5cb263e

Browse files
committed
BoxGroup spacing improvements
1 parent 1361246 commit 5cb263e

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

Editor/Editors/TriEditor.cs

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

115+
EditorGUIUtility.hierarchyMode = false;
116+
115117
using (TriGuiHelper.PushEditorTarget(serializedObject.targetObject))
116118
{
117119
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)