diff options
| author | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2022-01-07 15:43:59 +0100 |
|---|---|---|
| committer | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2022-01-20 12:19:03 +0100 |
| commit | 3aad05bc09f40d81df7748cbc246974230a3ca17 (patch) | |
| tree | dc10a6658bca790b98c4e1a52ff2d10cf78740d5 /src/qml/jsruntime/qv4arraybuffer.cpp | |
| parent | 1fd5f00d91f60a04ea3d83f3bc1c7c9b820dfe39 (diff) | |
QQuickListView: Stop overlap for section and firstItem delegates
Problem:
The first delegate after a section delegate would have the same position
as the section delegate, if the section delegate is invisible during
initialization.
In case the section delegates become visible later on during program
execution, the delegates would be re-positioned again in the
QQuickListViewPrivate::layoutVisibleItems function.
But this would not call setPosition for the first item (delegate).
It would only call setPosition for all delegates after the first one.
This would mean that the position for the first delegate would never be
updated, after the delegate was first created.
Solution:
Call FxListItemSG::setPosition() for the first item in
QQuickListViewPrivate::layoutVisibleItems, just like we're already doing
for all the items after the first one in the for-loop.
Fixes: QTBUG-94848
Pick-to: 6.3
Change-Id: I34a5ada336ab507b31e3675a1c11eba066fa139a
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4arraybuffer.cpp')
0 files changed, 0 insertions, 0 deletions
