-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The listbox scrollbar behaves abnormally #17349
Comments
Can you please provide a minimum sample to reproduce? We have no capacity to debug into a more complex sample. |
up to now, I have not reproduced with a mini project In addition |
The overlapping ListBoxItem issue can now be avoided using ScrollToView, but the scrollbar's abnormal behavior still persists. When I hover over the scrollbar, hold down the left mouse button and drag up/down, the mouse pointer gradually drifts away from the scrollbar. The longer you drag, the further the mouse gets from the scrollbar, until it completely leaves the scrollbar's interactive area, making it impossible to continue dragging. |
After disabling virtualization of the ListBox, both the overlapping issue and scrollbar behavior problem no longer occur. It appears these issues were caused by virtualization.
|
Yeah virtualization with different item sizes is a pain and will always be. If you have a handful of items and can deal without, that's great |
Do we have a plan to solve the virtualization problem? Also I noticed that the issue mentioned in the other issue, although it has been closed, I used the code at the time and upgraded to 11.1.4 ,the virtualization problem still persists. |
@NeverMorewd can you please try to use |
@grokys fyi attached is a minimal sample of the other linked issue, updated to 11.2.0-rc2. Issue is only visible if you:
@NeverMorewd Timeframe to solve? --> No priority from our side currently unless it becomes a customer issue. If you are a paying customer, let me know. If you want to digg into Avalonia source and file a PR, that is also an option. |
Describe the bug
After adding several items to ListBox, scroll the listbox with draging ScrollBar or code:
listbox.AutoScrollToSelectedItem = true;listbox.SelectedItem = item
will raise an abnormal display.To Reproduce
clone: https://github.com/NeverMorewd/Lemon.ModuleNavigation
start: Lemon.ModuleNavigation.Sample.DesktopHosting
Click ModuleB and ModuleC alternately to add enough items to ListBox for showing ScrollBar
Drag ScrollBar slowly up and down will produce this issue
Expected behavior
No response
Avalonia version
11.1.3
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: