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
- Colliders of GameObject with Rigidbody component fail to collide with another GameObject when Rigidbody becomes Kinematic
- Shader cache uploads occur when the "Upload" parameter is disabled in the Cache Server settings
- "ApplySingleProperty clear overrides error" error when applying SerializedReference override to Prefab's nested Prefab
- About Unity window shows extended version numbers including staging tag
- Mono release JIT incorrectly replaces long multiplication with a left-shift operation
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;