Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.4.0
-
None
-
Windows 7 64bit.
Description
We have a ListView with a custom model that will load more elements into the end of the list when we hit the bottom of the currently viewable list (a.k.a infinite scroll behaviour).
The ListView is wrapped in a ScrollView for the vertical scrollbar.
UI Elements of the ListView are loaded dynamically using a Loader.
The ListView delegate adds new elements with a SequentialAnimation, done in the ListView.onAdd.
When the user drags the scroll bar thumb to the bottom of the scroll view, more items are loaded as expected. When the list grows in size to roughly 150 elements, the scroll bar thumb will re-position itself to the middle of scroll view after new elements are added, the ListView itself will now display the elements in the middle of the list to match. This happens every time new elements are added to the bottom of the list.
If you disable the animations for ListView.onAdd in the delegate, the scroll bar behaves as you expect, when more elements are loaded in, the drag-able thumb stays at the bottom of the scrollbar as expected, and the Listview does not jump back to the middle elements.
Attachments
Issue Links
- relates to
-
QTBUG-45268 Quick ListView within ScrollView not aligned properly when BottomToTop is used
-
- Open
-