on xenial help sign in
check for adjusting up first
commitcfba978814ac9eff6272224dc7e1ea15d2926aaf authorAlbert Astals Cid <albert.astals@canonical.com> dateMon 29 Feb 2016, 11:53 (11 years ago) parenta51563c
1 file changed+3−3
plugins/Dash/listviewwithpageheader.cpp+3−3
plugins/Dash/listviewwithpageheader.cpp+3−3
@@ -1135,10 +1135,10 @@ void ListViewWithPageHeader::itemGeometryChanged(QQuickItem *item, const QRectF
11351135 if (!m_visibleItems.isEmpty()) {
11361136 ListItem *firstItem = m_visibleItems.first();
11371137 const auto prevFirstItemY = firstItem->y();
1138− if (item == firstItem->sectionItem()) {
1139− firstItem->setY(firstItem->y() + heightDiff);
1140− } else if (!m_inContentHeightKeepHeaderShown && oldGeometry.y() + oldGeometry.height() + m_clipItem->y() <= contentY()) {
1138+ if (!m_inContentHeightKeepHeaderShown && oldGeometry.y() + oldGeometry.height() + m_clipItem->y() <= contentY()) {
11411139 firstItem->setY(firstItem->y() - heightDiff);
1140+ } else if (item == firstItem->sectionItem()) {
1141+ firstItem->setY(firstItem->y() + heightDiff);
11421142 }
11431143
11441144 if (firstItem->y() != prevFirstItemY) {