InputRoll - fix bug where scrollbars are incorrectly calculated before the rowcount changes instead of after

This commit is contained in:
adelikat 2019-12-01 18:08:22 -06:00
parent 52db5ac848
commit f66e427ccb
1 changed files with 1 additions and 1 deletions

View File

@ -245,9 +245,9 @@ namespace BizHawk.Client.EmuHawk
{ {
if (_rowCount != value) if (_rowCount != value)
{ {
RecalculateScrollBars();
_rowCount = value; _rowCount = value;
_selectedItems.RemoveWhere(i => i.RowIndex >= _rowCount); _selectedItems.RemoveWhere(i => i.RowIndex >= _rowCount);
RecalculateScrollBars();
} }
// Similarly to ListView in virtual mode, we want to always refresh // Similarly to ListView in virtual mode, we want to always refresh