summaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickitemview.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2019-07-17 12:30:37 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2019-07-17 12:30:37 +0200
commit4129028e25da7f42bacba68ce14ccf44d03ff59b (patch)
tree14961fd1c10d2952fff3f7aaeb45ae6ae6c0554f /src/quick/items/qquickitemview.cpp
parent8f28229cec8ce8f52cefe760b86f3410786c201a (diff)
parentf806d64249c6e961ab12270d3a045e9980e19cf4 (diff)
Merge remote-tracking branch 'origin/5.12' into 5.12-merge-5.13
Diffstat (limited to 'src/quick/items/qquickitemview.cpp')
-rw-r--r--src/quick/items/qquickitemview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/items/qquickitemview.cpp b/src/quick/items/qquickitemview.cpp
index 95f1229b92..bbfbf6244c 100644
--- a/src/quick/items/qquickitemview.cpp
+++ b/src/quick/items/qquickitemview.cpp
@@ -1852,6 +1852,9 @@ void QQuickItemViewPrivate::layout()
forceLayout = false;
if (transitioner && transitioner->canTransition(QQuickItemViewTransitioner::PopulateTransition, true)) {
+ // Give the view one more chance to refill itself,
+ // in case its size is changed such that more delegates become visible after component completed
+ refill();
for (FxViewItem *item : qAsConst(visibleItems)) {
if (!item->transitionScheduledOrRunning())
item->transitionNextReposition(transitioner, QQuickItemViewTransitioner::PopulateTransition, true);