@@ -514,6 +514,11 @@ qreal ListViewWithPageHeader::minYExtent() const
514514 return m_minYExtent;
515515}
516516
517+qreal ListViewWithPageHeader::maxYExtent() const
518+{
519+ return height() - contentHeight();
520+}
521+
517522void ListViewWithPageHeader::componentComplete()
518523{
519524 if (m_delegateModel)
@@ -1186,7 +1191,7 @@ void ListViewWithPageHeader::headerHeightChanged(qreal newHeaderHeight, qreal ol
11861191
11871192void ListViewWithPageHeader::adjustMinYExtent()
11881193{
1189− if (m_visibleItems.isEmpty() || contentHeight() < height()) {
1194+ if (m_visibleItems.isEmpty() || (contentHeight() + m_minYExtent < height())) {
11901195 m_minYExtent = 0;
11911196 } else {
11921197 qreal nonCreatedHeight = 0;
@@ -1368,7 +1373,7 @@ void ListViewWithPageHeader::updatePolish()
13681373
13691374 m_contentHeightDirty = false;
13701375 adjustMinYExtent();
1371− if (contentHeight < height()) {
1376+ if (contentHeight + m_minYExtent < height()) {
13721377 // need this since in the previous call to adjustMinYExtent contentHeight is not set yet
13731378 m_minYExtent = 0;
13741379 }