diff --git a/Packages/com.unity.inputsystem/CHANGELOG.md b/Packages/com.unity.inputsystem/CHANGELOG.md index a4f8d900e7..ce63a5678a 100644 --- a/Packages/com.unity.inputsystem/CHANGELOG.md +++ b/Packages/com.unity.inputsystem/CHANGELOG.md @@ -17,6 +17,7 @@ however, it has to be formatted properly to pass verification tests. - Fixed an issue causing InvalidOperationException when entering playmode with domain reload disabled. [ISXB-1208](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1208). - Fixed an issue where compiling Addressables with Input System package present would result in failed compilation due to `IInputAnalytic.TryGatherData` not being defined [ISXB-1203](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1203). - Pinned Touch Samples sample package dependencies to avoid errors with Cinemachine 3.x and Probuilder 6.x. [ISXB-1245](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1245) +- Fixed an issue where dropdown menu for Path in Input Actions Editor could not be selected from any button position. [ISXB-1309](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1309) ## [1.12.0] - 2025-01-15 diff --git a/Packages/com.unity.inputsystem/InputSystem/Editor/ControlPicker/InputControlPathEditor.cs b/Packages/com.unity.inputsystem/InputSystem/Editor/ControlPicker/InputControlPathEditor.cs index dbfc601023..91d10fdc81 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Editor/ControlPicker/InputControlPathEditor.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Editor/ControlPicker/InputControlPathEditor.cs @@ -96,7 +96,7 @@ public void OnGUI(Rect rect, GUIContent label = null, SerializedProperty propert var lineRect = rect; var labelRect = lineRect; - labelRect.width = EditorGUIUtility.labelWidth; + labelRect.width = EditorStyles.label.CalcSize(pathLabel).x + 20; // Fit to label with some padding EditorGUI.LabelField(labelRect, pathLabel); lineRect.x += labelRect.width; lineRect.width -= labelRect.width; @@ -104,10 +104,9 @@ public void OnGUI(Rect rect, GUIContent label = null, SerializedProperty propert var bindingTextRect = lineRect; var editButtonRect = lineRect; - var bindingTextRectOffset = 80; - bindingTextRect.width += bindingTextRectOffset; - bindingTextRect.x -= bindingTextRectOffset + 20; - editButtonRect.x = bindingTextRect.x + bindingTextRect.width; // Place it directly after the textRect + bindingTextRect.x = labelRect.x + labelRect.width; // Place directly after labelRect + editButtonRect.x += lineRect.width - 20; // Place at the edge of the window to appear after bindingTextRect + bindingTextRect.width = editButtonRect.x - bindingTextRect.x; // bindingTextRect fills remaining space between label and editButton editButtonRect.width = 20; editButtonRect.height = 15;