Skip to content

Commit e1e6a16

Browse files
committed
Fix label size for foldout-based properties
1 parent cc21fd3 commit e1e6a16

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Assets/Editor Toolbox/Editor/Internal/PropertyScope.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ private void TryDrawLabel(Rect rect, GUIContent label)
4141
LabelRect = rect;
4242
if (property.hasVisibleChildren)
4343
{
44-
var labelRect = LabelRect;
45-
labelRect.xMax += EditorGuiUtility.FoldoutSize;
46-
LabelRect = labelRect;
47-
property.isExpanded = EditorGUI.Foldout(labelRect, property.isExpanded, label, true);
44+
property.isExpanded = EditorGUI.Foldout(LabelRect, property.isExpanded, label, true);
4845
}
4946
else
5047
{

0 commit comments

Comments
 (0)