]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinview.cpp
KItemListView: add view position in scrollToItem()
[dolphin.git] / src / views / dolphinview.cpp
index ace763b153167949f3b61733701c09a7528441d6..0a1d70bf11e334fc3d644861f4209c5546f95fc1 100644 (file)
@@ -1761,7 +1761,7 @@ void DolphinView::updateViewState()
 
                 // scroll to current item and reset the state
                 if (m_scrollToCurrentItem) {
-                    m_view->scrollToItem(currentIndex);
+                    m_view->scrollToItem(currentIndex, KItemListView::ViewItemPosition::Middle);
                     m_scrollToCurrentItem = false;
                 }
                 m_currentItemUrl = QUrl();