Skip to content
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

ListBox virtualization with variable item height and random scroll behavior #8344

Closed
agnauck opened this issue Jun 15, 2022 · 0 comments · Fixed by #9677
Closed

ListBox virtualization with variable item height and random scroll behavior #8344

agnauck opened this issue Jun 15, 2022 · 0 comments · Fixed by #9677
Labels

Comments

@agnauck
Copy link

agnauck commented Jun 15, 2022

Describe the bug
A ListBox that has items of different height and virtualization scrolling does not work always correctly.
By scrolling up and down the whole list using the scrollbar the last items is always positioned different on each run.

  • Sometimes there is remaining free space, the free space at the end that varies on each run
  • Sometimes the last item cannot be scrolled into the view completely, its only partly visible

To Reproduce
This can be reproduced with the VirtualizationDemo when randomizing the item size and then scrolling up and down multiple times using the scrollbar.

Expected behavior
I would expect that the last item is always positioned exactly the same.
I would expect that the last item is visible always completely when scrolling to the end of the list

Screenshots

bug

Desktop (please complete the following information):

  • Windows 11
  • Version: latest nightly (0.10.999-cibuild0021189-beta)

Additional context

  • This is also effect scrolling to specific items from code
  • It also effect monitoring the scroll position from code, like detecting a scrolled to end event
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant