Skip to content

Commit

Permalink
#200 - fixed a nesting bug where some elements were overlapping
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrizov committed Jan 11, 2021
1 parent aa20fa3 commit 0183cca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Assets/NaughtyAttributes/Scripts/Editor/NaughtyInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected void DrawSerializedProperties()
}
else
{
NaughtyEditorGUI.PropertyField_Layout(property, true);
NaughtyEditorGUI.PropertyField_Layout(property, includeChildren: true);
}
}

Expand All @@ -100,7 +100,7 @@ protected void DrawSerializedProperties()
NaughtyEditorGUI.BeginBoxGroup_Layout(group.Key);
foreach (var property in visibleProperties)
{
NaughtyEditorGUI.PropertyField_Layout(property, true);
NaughtyEditorGUI.PropertyField_Layout(property, includeChildren: true);
}

NaughtyEditorGUI.EndBoxGroup_Layout();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ sealed override public float GetPropertyHeight(SerializedProperty property, GUIC

protected virtual float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label)
{
return base.GetPropertyHeight(property, label);
return EditorGUI.GetPropertyHeight(property, includeChildren: true);
}

protected float GetPropertyHeight(SerializedProperty property)
Expand All @@ -63,7 +63,7 @@ protected float GetPropertyHeight(SerializedProperty property)
return specialCaseAttribute.GetDrawer().GetPropertyHeight(property);
}

return EditorGUI.GetPropertyHeight(property, true);
return EditorGUI.GetPropertyHeight(property, includeChildren: true);
}

public virtual float GetHelpBoxHeight()
Expand Down

0 comments on commit 0183cca

Please sign in to comment.