Search Issue Tracker
By Design
Unknown (hidden) 2019.4.X, 2020.3.X, 2021.3.X, 2022.1.X, 2022.2.X, 2023.1.X
Votes
1
Found in
2019.4.39f1
2020.3.35f1
2021.3.3f1
2022.1.3f1
2022.2.0a1
2023.1.0a1
Issue ID
UUM-3482
Regression
No
[UIToolkit] ScrollView scroll bars aren't refreshed after changing its size
How to reproduce:
1. Open the user's attached "ScrollBarsBug" project
2. Open the "Bug" Visual Tree Asset in the Project Browser
3. Observe the nested "ScrollView" VisualElement in the Viewport
Expected result: Both vertical and horizontal scroll bars are visible within the "ScrollView" VisualElement
Actual result: None of the scroll bars are visible with specific "ScrollView" VisualElement Size values
Reproducible with: 2019.4.38f1, 2020.3.33f1, 2021.3.0f1, 2022.1.0b16, 2022.2.0a10
Note:
- Changing the Size values of the "ScrollView" to smaller numbers or resizing the "Bug.uxml" Canvas makes the scroll bars visible
- Related to the forum thread: https://forum.unity.com/threads/how-to-refresh-scrollview-scrollbars-to-reflect-changed-content-width-and-height.1260920/
Comments (1)
-
howtodiscuss291
Jun 04, 2022 09:32
I really appreciate the posts published here. Thanks for sharing us great information that is actually helpful.
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
- Windows player with a custom .exe file crashes in FixupD3D12SDKPath
- "Property exceeds previous array size (2 vs 1)" warnings are thrown making it impossible to work with the Update Zones of the CustomRenderTexture when updating the script
- Bug Reporter recommends invalid discussion links when writing a Title of the issue
- Freeze when calling Rigidbody.SweepTestAll in a specific project
- Crash on UI::RectTransform::SetDrivenByObject when rapidly undoing copies of a specific GameObject
Resolution Note:
Scrollview is only refreshed when the geometry of his direct child changes
Resolution Note (2022.2.X):
Created by mistake
Resolution Note (2020.3.X):
2020.3.x is not covered by UI Toolkit support (Package only)
Resolution Note (2019.4.X):
2019.4.x is not covered by UI Toolkit support (Package only)