]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kitemlistviewlayouter.cpp
Draw styled header for the details-view
[dolphin.git] / src / kitemviews / kitemlistviewlayouter.cpp
index 78688c9414465b6891e9b31de63c96249d1fd49d..eaf175a513a733ef2f8df2da5707a3b2d2652169 100644 (file)
@@ -362,7 +362,8 @@ void KItemListViewLayouter::updateVisibleIndexes()
         prevRowIndex -= m_columnCount;
     }
 
-    while (prevRowIndex >= 0 && m_itemBoundingRects[prevRowIndex].bottom() >= m_offset) {
+    const qreal top = m_offset + m_headerHeight;
+    while (prevRowIndex >= 0 && m_itemBoundingRects[prevRowIndex].bottom() >= top) {
         m_firstVisibleIndex = prevRowIndex;
         prevRowIndex -= m_columnCount;
     }