Unity Issue Tracker - Listview is scrolled to the wrong item when using “ScrollToItem” in a listview with “Dynamic Height” Virtualization Method
Fixed
UUM-40674
Listview is scrolled to the wrong item when using “ScrollToItem” in a listview with “Dynamic Height” Virtualization Method
Unity: UI Toolkit Controls
Fixed
2023.3.X
2023.2.X
2023.1.X
2022.3.X
2021.3.X
Fixed UUM-40674 @guillaume-riendeau:
UI Toolkit: Dynamic height ListView was being scrolled to the wrong item when using ScrollToItem.
Fixed in: 2023.2.0b3
Fixed in: 2023.1.7f1
Fixed in: 2022.3.7f1
Fixed in: 2021.3.31f1
How to reproduce:
1. Open the user’s attached “My project (2).zip” project
2. Enter Play Mode
3. In the “Text Field,” insert “30”
4. Observe the scrolled item’s id
Expected result: Listview is scrolled to the item with id 30
Actual result: Listview is scrolled to the item with id 24