Fix first item positioning when m_clipItem->y() is not 0
Fixes: 1251597, 1372940
Approved by: Michael Zanetti
commit19f9882d2e33397518fff13f5ca55edcce302320
authorAlbert Astals <albert.astals@canonical.com>
dateMon 13 Oct 2014, 15:41 (12 years ago)
parente83c89b6055ff3
plugins/Dash/listviewwithpageheader.cpp+1−1
@@ -851,7 +851,7 @@ ListViewWithPageHeader::ListItem *ListViewWithPageHeader::createItem(int modelIn
851851 if (nextItem) {
852852 listItem->setY(nextItem->y() - listItem->height());
853853 } else if (modelIndex == 0) {
854− listItem->setY(m_headerItem ? m_headerItem->height() : 0);
854+ listItem->setY(-m_clipItem->y() + (m_headerItem ? m_headerItem->height() : 0));
855855 } else if (!m_visibleItems.isEmpty()) {
856856 lostItem = true;
857857 }