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
- Prefab Override popup displays on wrong monitor when Inspector width is resized to minimum
- Scroll View is not moving by inertia after scrolling by click and dragging when Editor window is minimized and Canvas "Render Mode" is set to "World Space"
- "type mismatch error" occurs when the currentDirectionWS output of a Sample Water Surface node is connected to a float3 input
- URP Material Upgrade utility does not enable Alpha Clipping when material had Rendering Mode set to Cutout
- Particle System emission ignores the Sprite Atlas when using a Material that has the "Include in Build" setting unchecked
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;