mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
BoxGroup spacing improvements
This commit is contained in:
parent
1361246895
commit
5cb263e277
@ -112,6 +112,8 @@ namespace TriInspector.Editors
|
||||
inspector.Update();
|
||||
inspector.RunValidationIfRequired();
|
||||
|
||||
EditorGUIUtility.hierarchyMode = false;
|
||||
|
||||
using (TriGuiHelper.PushEditorTarget(serializedObject.targetObject))
|
||||
{
|
||||
inspector.Draw();
|
||||
|
@ -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:
|
||||
|
@ -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>();
|
||||
|
@ -303,7 +303,6 @@ namespace TriInspector.Elements
|
||||
}
|
||||
else
|
||||
{
|
||||
labelRect.x += 10;
|
||||
TriEditorGUI.Foldout(labelRect, _property);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user