From f66e427ccb804991688a5718a10781a5feb892c2 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 1 Dec 2019 18:08:22 -0600 Subject: [PATCH] InputRoll - fix bug where scrollbars are incorrectly calculated before the rowcount changes instead of after --- BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs b/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs index 0a85ed865e..82972a4d98 100644 --- a/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs +++ b/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs @@ -245,9 +245,9 @@ namespace BizHawk.Client.EmuHawk { if (_rowCount != value) { - RecalculateScrollBars(); _rowCount = value; _selectedItems.RemoveWhere(i => i.RowIndex >= _rowCount); + RecalculateScrollBars(); } // Similarly to ListView in virtual mode, we want to always refresh