Describe the bug
When a ComboBox contains variable-height items, reopening the drop-down with a selected item in the middle of the list can produce an incorrect scroll offset.
The selected ComboBoxItem may already appear at the top of the popup, but the list can still be scrolled further upward. This leaves blank or unrelated space above the item and causes the scrollbar thumb to represent an incorrect position.
The underlying issue also affects VirtualizingStackPanel.ScrollIntoView when scrolling to an unrealized item before the current realized range.
To Reproduce
See the gif
Expected behavior
No response
Avalonia version
12.1.1
OS
No response
Additional context
No response
Describe the bug
When a
ComboBoxcontains variable-height items, reopening the drop-down with a selected item in the middle of the list can produce an incorrect scroll offset.The selected
ComboBoxItemmay already appear at the top of the popup, but the list can still be scrolled further upward. This leaves blank or unrelated space above the item and causes the scrollbar thumb to represent an incorrect position.The underlying issue also affects
VirtualizingStackPanel.ScrollIntoViewwhen scrolling to an unrealized item before the current realized range.To Reproduce
See the gif
Expected behavior
No response
Avalonia version
12.1.1
OS
No response
Additional context
No response