diff options
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 20864302c..3315b6428 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -1625,7 +1625,7 @@ struct GameSettingsWindow : Window { virtual void OnResize(Point delta) { - this->vscroll.UpdateCapacity(delta.y / SETTING_HEIGHT); + this->vscroll.SetCapacity((this->widget[SETTINGSEL_OPTIONSPANEL].bottom - this->widget[SETTINGSEL_OPTIONSPANEL].top - 8) / SETTING_HEIGHT); } }; |