Search Issue Tracker
By Design
Votes
0
Found in
2021.3.6f1
2022.1.9f1
2022.2.0b1
2023.1.0a3
Issue ID
UUM-8865
Regression
No
[UIToolkit] ListView elements are selected incorrectly
Reproduction steps:
# Open the user's attached project
# Select the "Show > Me" menu item to bring up the window containing ListView
# Select various list elements at various heights
Expected result: ListView selects elements that are hovered upon by the mouse cursor and does not leave blank space at the bottom
Actual result: ListView selects incorrect elements due to the offset of an element with an altered size and leaves blank space at the bottom
Reproduced with: 2021.3.6f1, 2022.1.9f1, 2022.2.0b1, 2023.1.0a3
Could not test with: 2020.3.36f1 (ListView window can’t be loaded)
Reproducible on: macOS 12.4 (Intel)
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
- The Scrollbar becomes unusable when adding Elements to the List
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
Resolution Note:
The list view is currently set to use the fixed height mode for each row that should be handled by the list view. The height is being overridden in the bind method of the list view by the user, breaking the fixed height contract.
To use variable/dynamic heights, the list view must be set to support dynamic heights like this:
list.virtualizationMethod = CollectionVirtualizationMethod.DynamicHeight;