Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2020.2
2020.2.1f1
2020.3
2021.2
Issue ID
1312542
Regression
No
[UI Toolkit] ScrollView element styles cannot be changed in uss
How to reproduce:
1. Open the attached '1312542-repro.zip' project
2. In the Project window double-click on the 'Dragger-Not-Resizable' Asset
3. In the Hierarchy of the UI Builder window select #unity-dragger (VisualElement > ScrollView > Scroller > #unity-slider > VisualElement > #unity-drag-container)
4. In the Inspector of the UI Builder window find the 'Size' section
5. Observe the 'Height' property
Expected result: The 'Height' value is 100px
Actual result: The 'Height' value is 235px
Reproducible with: UI Toolkit 1.0.0-preview.13 (2020.2.7f1, 2020.3.7f1), 2021.2.0a10
Not reproducible with: 2021.2.0a11, 2021.2.0a16
Cannot test with: UI Toolkit 1.0.0-preview.12 (2020.2.7f1, 2020.3.7f1, 2021.1.5f1), 1.0.0-preview.13 (2021.1.5f1), 1.0.0-preview.14 (2020.2.7f1, 2020.3.7f1, 2021.1.5f1) (package errors), 2018.4.34f1, 2019.4.26f1 (the package is not supported)
Notes:
- The issue is also reproducible when trying to change styles via Script
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Resolution Note (fix version 2021.2):
No longer reproducible in 2021.2.0a11