Search Issue Tracker
Active
Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X, 6000.2.X, 6000.3.X, 6000.4.X
Votes
0
Found in
2021.3.40f1
2022.3.38f1
6000.0.10f1
6000.1.0a7
6000.2.0a1
6000.3.0a1
6000.4.0a1
6000.5.0a1
7000.0.0a1
Issue ID
UUM-76432
Regression
No
UI Toolkit element row margins are scaled inconsistently when UI Scaling is bigger than the default
How to reproduce:
1. Open the “FlexWarpScalingBug.zip“ project
2. Click “Test/Test“ in the Toolbar to open a “MyEditorWindow“ Window
3. Change the UI Scaling in Preferences (through desktop settings or custom value) to a bigger value (from the default option to 1-2 options higher)
4. Observe the “MyEditorWindow“ Window
Expected result: All colored boxes fit into the black-bordered box
Actual result: The last colored box does not fit and goes down by one row
Reproducible in: 2021.3.40f1, 2022.3.38f1, 6000.0.10f1
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: MacOS 14.4.1 (M2) (No UI Scaling), No other environment tested
Notes:
- To expand on 3rd step: if your default UI Scaling is 100%, you should change to 125% scaling. Similarly, if your scaling is 250%, you should change to 350%, downscaling causes no issue
- Does not seem to reproduce when the bordered box’s “style.flexWrap” enum is set to “NoWrap”
- Changing the colored box’s margins to an even number (2, 4, 6, 8, etc.) will fix the issue
- In version 6000.0.10f1, the second row colored box is not encapsulated by the bordered box
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Add comment