@@ -701,7 +701,7 @@ void ListViewWithPageHeader::updatePolish()
703 if (!m_visibleItems.isEmpty()) {
703 if (!m_visibleItems.isEmpty()) {
704− const qreal visibleFrom = contentY() - m_clipItem->y();
704+ const qreal visibleFrom = contentY() - m_clipItem->y() + m_headerItemShownHeight;
705 const qreal visibleTo = contentY() + height() - m_clipItem->y();
705 const qreal visibleTo = contentY() + height() - m_clipItem->y();
707 qreal pos = m_visibleItems.first()->y();
707 qreal pos = m_visibleItems.first()->y();
@@ -720,7 +720,6 @@ void ListViewWithPageHeader::updatePolish()
720 const QString section = m_delegateModel->stringValue(modelIndex, m_sectionProperty);
720 const QString section = m_delegateModel->stringValue(modelIndex, m_sectionProperty);
721 QQmlContext *context = QQmlEngine::contextForObject(m_topSectionItem)->parentContext();
721 QQmlContext *context = QQmlEngine::contextForObject(m_topSectionItem)->parentContext();
722 context->setContextProperty(QLatin1String("section"), section);
722 context->setContextProperty(QLatin1String("section"), section);
725 // Positing the top section sticky item is a two step process
724 // Positing the top section sticky item is a two step process
726 // First we set it either we cull it (because it doesn't need to be sticked to the top)
725 // First we set it either we cull it (because it doesn't need to be sticked to the top)
@@ -730,9 +729,13 @@ void ListViewWithPageHeader::updatePolish()
730 const qreal topSectionStickPos = m_headerItemShownHeight + contentY() - m_clipItem->y();
729 const qreal topSectionStickPos = m_headerItemShownHeight + contentY() - m_clipItem->y();
731 if (topSectionStickPos <= pos) {
730 if (topSectionStickPos <= pos) {
732 QQuickItemPrivate::get(m_topSectionItem)->setCulled(true);
731 QQuickItemPrivate::get(m_topSectionItem)->setCulled(true);
732+ QQuickItemPrivate::get(item->m_sectionItem)->setCulled(false);
734 QQuickItemPrivate::get(m_topSectionItem)->setCulled(false);
734 QQuickItemPrivate::get(m_topSectionItem)->setCulled(false);
735 m_topSectionItem->setY(topSectionStickPos);
735 m_topSectionItem->setY(topSectionStickPos);
736+ if (item->m_sectionItem) {
737+ QQuickItemPrivate::get(item->m_sectionItem)->setCulled(true);