Skip to content

FIX: Inset the Supported Devices list in Input System settings so it aligns with the other fields [UUM-150207] - #2477

Merged
Pauliusd01 merged 1 commit into
developfrom
fix/uum-150207-supported-devices-list-inset
Aug 19, 2026
Merged

FIX: Inset the Supported Devices list in Input System settings so it aligns with the other fields [UUM-150207]#2477
Pauliusd01 merged 1 commit into
developfrom
fix/uum-150207-supported-devices-list-inset

Conversation

@Pauliusd01

Copy link
Copy Markdown
Collaborator

Description

Note

This pull request was generated automatically. Please review carefully before merging.

In InputSettingsProvider.OnGUI(string searchContext), the "Supported Devices" list is drawn by a ReorderableList via m_SupportedDevices.DoLayoutList(), which reserves a full-width rect and draws its header, elements and background box flush against the settings panel's content edge. As a result that section had no visible left/right margin while every surrounding EditorGUILayout field appeared inset, making the list look misaligned.

The DoLayoutList() call is now wrapped in an EditorGUILayout.HorizontalScope with a 3px GUILayout.Space on each side, and the list itself placed in an EditorGUILayout.VerticalScope so it expands to the remaining width. This gives the list the same horizontal inset as the neighbouring controls without changing how the list itself behaves.

Testing status & QA

  • No automated test added — the change only shifts internally-computed IMGUI rects for visual alignment, which has no assertable behaviour via InputTestFixture; it was verified by eyeballing the section in the running editor.
  • QA: open Project Settings > Input System Package and confirm the "Supported Devices" list now lines up with the other fields on the panel. Repro steps are in https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-150207 (linked once).

Overall Product Risks

  • Complexity: low
  • Halo Effect: low (editor-only IMGUI edit confined to a single settings provider method; no public API or serialized data touched)
  • Risk rating: 3/5 — The touched OnGUI layout path has no UI-layout test coverage, so a misaligned or broken inset would land uncaught, and the correct inset value is explicitly deferred to visual confirmation in the running editor.

Comments to reviewers

N/A

Checklist

Before review:

  • Changelog entry added.
    • Explains the change in Changed, Fixed, Added sections.
    • For API change contains an example snippet and/or migration example.
    • JIRA ticket linked, example (case %%). If it is a private issue, just add the case ID without a link.
    • Jira port for the next release set as "Resolved".
  • Tests added/changed, if applicable.
    • Functional tests Area_CanDoX, Area_CanDoX_EvenIfYIsTheCase, Area_WhenIDoX_AndYHappens_ThisIsTheResult.
    • Performance tests.
    • Integration tests.
  • Docs for new/changed API's.
    • Xmldoc cross references are set correctly.
    • Added explanation how the API works.
    • Usage code examples added.
    • The manual is updated, if needed.

During merge:

  • Commit message for squash-merge is prefixed with one of the list:
    • NEW: ___.
    • FIX: ___.
    • DOCS: ___.
    • CHANGE: ___.
    • RELEASE: 1.1.0-preview.3.

…aligns with the other fields [UUM-150207]

The "Supported Devices" ReorderableList in the Input System Package Settings sat flush against the panel edge with no left/right margin, while the surrounding EditorGUILayout fields were inset.

In InputSettingsProvider.OnGUI(string searchContext), the bare m_SupportedDevices.DoLayoutList() call is now wrapped in an EditorGUILayout.HorizontalScope with a 3px GUILayout.Space on each side and the list placed in a VerticalScope so it expands to the remaining width, giving the list the same horizontal inset as the neighbouring controls.

Jira: https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-150207
@Pauliusd01 Pauliusd01 self-assigned this Aug 19, 2026
@Pauliusd01
Pauliusd01 marked this pull request as ready for review August 19, 2026 12:04

@u-pr u-pr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Harness Review

Ship it

The IMGUI scope change cleanly constrains the supported-device list to the intended inset while preserving the surrounding layout flow; I also examined the list initialization and changelog update.

Reviewed commit 49022dd

🤖 Helpful? 👍/👎

@codecov-github-com

codecov-github-com Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...putSystem/Editor/Settings/InputSettingsProvider.cs 0.00% 7 Missing ⚠️
@@            Coverage Diff            @@
##           develop    #2477    +/-   ##
=========================================
  Coverage    78.95%   78.96%            
=========================================
  Files          767      767            
  Lines       140780   140903   +123     
=========================================
+ Hits        111153   111263   +110     
- Misses       29627    29640    +13     
Flag Coverage Δ
inputsystem_MacOS_6000.0 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.0_project 77.50% <0.00%> (+<0.01%) ⬆️
inputsystem_MacOS_6000.3 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.3_project 77.49% <0.00%> (+<0.01%) ⬆️
inputsystem_MacOS_6000.5 5.29% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.5_project 77.55% <0.00%> (+<0.01%) ⬆️
inputsystem_MacOS_6000.6 5.29% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.6_project 77.55% <0.00%> (+<0.01%) ⬆️
inputsystem_MacOS_6000.7 5.29% <0.00%> (-0.01%) ⬇️
inputsystem_MacOS_6000.7_project 77.56% <0.00%> (+0.01%) ⬆️
inputsystem_Ubuntu_6000.0 5.31% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.0_project 77.41% <0.00%> (+<0.01%) ⬆️
inputsystem_Ubuntu_6000.3 5.31% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.3_project 77.40% <0.00%> (+<0.01%) ⬆️
inputsystem_Ubuntu_6000.5 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.5_project 77.46% <0.00%> (+<0.01%) ⬆️
inputsystem_Ubuntu_6000.6 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.6_project 77.46% <0.00%> (+<0.01%) ⬆️
inputsystem_Ubuntu_6000.7 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.7_project 77.46% <0.00%> (+<0.01%) ⬆️
inputsystem_Windows_6000.0 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.0_project 77.63% <0.00%> (+0.06%) ⬆️
inputsystem_Windows_6000.3 5.30% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.5 5.29% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.5_project 77.68% <0.00%> (+0.05%) ⬆️
inputsystem_Windows_6000.6 5.29% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.6_project 77.68% <0.00%> (+0.05%) ⬆️
inputsystem_Windows_6000.7 5.29% <0.00%> (-0.01%) ⬇️
inputsystem_Windows_6000.7_project 77.68% <0.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...putSystem/Editor/Settings/InputSettingsProvider.cs 1.26% <0.00%> (-0.02%) ⬇️

... and 3 files with indirect coverage changes

ℹ️ Need help interpreting these results?

@VeraMommersteeg VeraMommersteeg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, ty for fixing this small artifact

@Pauliusd01
Pauliusd01 merged commit 2215e6a into develop Aug 19, 2026
102 of 107 checks passed
@Pauliusd01
Pauliusd01 deleted the fix/uum-150207-supported-devices-list-inset branch August 19, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants