Skip to content

Commit 1221603

Browse files
iTris666julienf-unity
authored andcommitted
Add one pixel to height in non wide mode so that margin is equal to wide mode. (#145)
1 parent 62d8a60 commit 1221603

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

com.unity.visualeffectgraph/Editor/Inspector/VisualEffectEditor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ bool DisplayProperty(ref VFXParameterInfo parameter, GUIContent nameContent, Ser
165165
if (!EditorGUIUtility.wideMode && GenerateMultipleField(ref parameter, valueProperty))
166166
{
167167
height *= 2.0f;
168+
height += 1;
168169
}
169170

170171
var rect = EditorGUILayout.GetControlRect(false, height);

0 commit comments

Comments
 (0)