gamelist: scroll fix (workaround)

This commit is contained in:
Megamouse 2017-07-24 19:12:31 +02:00 committed by Ivan
parent f577af452d
commit ab198c0c5f

View File

@ -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
{