From ab198c0c5f85a12d375fc8413517955f9cf153de Mon Sep 17 00:00:00 2001 From: Megamouse Date: Mon, 24 Jul 2017 19:12:31 +0200 Subject: [PATCH] gamelist: scroll fix (workaround) --- rpcs3/rpcs3qt/game_list_frame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcs3/rpcs3qt/game_list_frame.cpp b/rpcs3/rpcs3qt/game_list_frame.cpp index 4a4b2398c1..c14dbd47fc 100644 --- a/rpcs3/rpcs3qt/game_list_frame.cpp +++ b/rpcs3/rpcs3qt/game_list_frame.cpp @@ -476,7 +476,9 @@ void game_list_frame::Refresh(bool fromDrive) gameList->verticalHeader()->setMaximumSectionSize(m_Icon_Size.height()); gameList->resizeRowsToContents(); gameList->resizeColumnToContents(0); - gameList->scrollTo(gameList->currentIndex()); + gameList->scrollToTop(); // fix drunk scroll behaviour (may still not be perfect) + gameList->scrollToBottom(); // fix drunk scroll behaviour (may still not be perfect) + gameList->scrollTo(gameList->currentIndex(), QAbstractItemView::PositionAtCenter); } else {