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
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
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;