BoxGroup spacing improvements

This commit is contained in:
VladV 2023-07-30 21:23:17 +04:00
parent 1361246895
commit 5cb263e277
4 changed files with 3 additions and 3 deletions

View File

@ -112,6 +112,8 @@ namespace TriInspector.Editors
inspector.Update();
inspector.RunValidationIfRequired();
EditorGUIUtility.hierarchyMode = false;
using (TriGuiHelper.PushEditorTarget(serializedObject.targetObject))
{
inspector.Draw();

View File

@ -109,7 +109,6 @@ namespace TriInspector.Elements
switch (_props.titleMode)
{
case TitleMode.Foldout:
headerLabelRect.x += 10;
_expanded = EditorGUI.Foldout(headerLabelRect, _expanded, headerContent, true);
break;
case TitleMode.Toggle:

View File

@ -12,7 +12,7 @@ namespace TriInspector.Elements
private readonly Props _props;
private const float InsetTop = 4;
private const float InsetBottom = 4;
private const float InsetLeft = 18;
private const float InsetLeft = 4;
private const float InsetRight = 4;
private readonly List<TriProperty> _properties = new List<TriProperty>();

View File

@ -303,7 +303,6 @@ namespace TriInspector.Elements
}
else
{
labelRect.x += 10;
TriEditorGUI.Foldout(labelRect, _property);
}