Search Issue Tracker
Fixed in 2021.1.X
Votes
0
Found in
2020.3
2021.1
2021.2
2021.2.0a9
Issue ID
1322550
Regression
Yes
[UI Toolkit] UI Control size values increase after setting Windows Display Scaling to 150% and resizing the Control
How to reproduce it:
1. Open Windows Display Settings and set the UI Scaling to 150%
2. Open the user's attached project "URP Testing.zip"
3. Double-click on "NewUXMLTemplate.uxml" file to open a UI Builder view
4. Replace an existing VisualElement with a new one
5. In the UI Builder's Viewport resize the VisualElement by dragging its corner
6. In the UI Builder's Inspector view observe the VisualElement's size fields
Expected result: The values remain small and don't jump to very high numbers
Actual result: The values suddenly become very high
Reproducible with: 1.0.0-preview.8 (2020.3.2f1), 1.0.0-preview.14 (2021.1.0f1), Built-in UI Toolkit (2021.1.0f1, 2021.2.0a10)
Not reproducible with: 1.0.0-preview.7 (2020.3.2f1)
Could not test with: 2018.4.33f1, 2019.4.23f1 (UI Toolkit is not introduced yet)
Notes:
- Not reproducible the first time, need to repeat 5 and 6 steps few times
- Not reproducible when UI Scaling is 100%
- Only reproducible, when VisualElement's size values are in 'px'
- In 2020.3.2f1 used an UI Builder (1.0.0-preview.13), and in 2021.1.0f1, 2021.2.0a10 versions used Built-in UI Builder and UI Builder package (1.0.0-preview.13)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Manual reference page for Grid Selection is missing
- Awaitable.NextFrameAsync causes GC Alloc 0.7 KB when using CancellationToken
- Prefab "Overrides" list item popups are overridden when navigating with keyboard arrow keys
- Alpha Tolerance setting does not affect generated outlines when generating Custom Physics Shape in the Sprite Editor
- The information/help message section misses a margin in the "Profiler" window
Add comment