`scroll_to` Doesn't Work When Immedietly Called After Showing The List in a Stack
Hi!
I've noticed a weird bug with scroll_to
. In some edge cases the actual scrolling doesn't work.
Steps to reproduce
- Add a
ListView
to aStack
- Add another page above it
- Make the
ListView
visible in theStack
and immediately after that usescroll_to
Here is a small python reproducer: scroll.py
Current behavior
While the scroll flags (e.g. selecting the item) are successfully applied the actual scrolling doesn't happen until a second scroll_to
some time later.
Expected outcome
As the documentation explicitly states
This function works no matter if the listview is shown or focused. If it isn’t, then the changes will take effect once that happens. I'd expect the scrolling to work even if one uses
scroll_to
before switching the visible child of theStack
. But both orders won't work.
Version information
I'm currently running 4.12.5
on Gentoo but I've also tested on Arch with 4.13.8
.
Additional information
Sadly there are no errors on the terminal.
Edited by Martin Wagner