Skip to content

Commit a0cd937

Browse files
committed
FIX: Keep parameter-less item labels aligned with foldout items [UUM-144325]
Hide the parameter-less header's expand arrow with visibility:Hidden instead of display:None so the arrow retains its layout box and the label stays in the same column as the labels of items that do have a foldout.
1 parent 7044c7e commit a0cd937

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Views/NameAndParametersListView.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,11 @@ public NameAndParametersListViewItem(VisualElement root, ParameterListView param
182182
else
183183
{
184184
// Hide the expand arrow and disable picking on the header toggle; the move/delete buttons are
185-
// separate child elements and remain clickable.
185+
// separate child elements and remain clickable. Use visibility (not display) so the arrow keeps
186+
// its layout box and the header label stays aligned with the foldout items' labels.
186187
var checkmark = header.Q(className: "unity-toggle__checkmark");
187188
if (checkmark != null)
188-
checkmark.style.display = DisplayStyle.None;
189+
checkmark.style.visibility = Visibility.Hidden;
189190
header.pickingMode = PickingMode.Ignore;
190191
}
191192
}

0 commit comments

Comments
 (0)