From c0cd7cafe4e3a475efb3993f53cf39021ed081b1 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Thu, 24 Apr 2025 00:39:35 +0100 Subject: [PATCH] Change: Remove minimum width from advanced settings panel of Game Options window. (#14088) Previous minimum width of 400 was fairly arbitrary and isn't necessary when the minimum size is suitably constrained by other widgets in the window. This allows the window to be narrower for CJK languages. --- src/settings_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 76b80b8b3e..3680747305 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -1747,7 +1747,7 @@ static constexpr NWidgetPart _nested_game_options_widgets[] = { EndContainer(), NWidget(NWID_HORIZONTAL), - NWidget(WWT_PANEL, GAME_OPTIONS_BACKGROUND, WID_GO_OPTIONSPANEL), SetMinimalSize(400, 0), SetFill(1, 1), SetResize(1, 1), SetScrollbar(WID_GO_SCROLLBAR), + NWidget(WWT_PANEL, GAME_OPTIONS_BACKGROUND, WID_GO_OPTIONSPANEL), SetFill(1, 1), SetResize(1, 1), SetScrollbar(WID_GO_SCROLLBAR), EndContainer(), NWidget(NWID_VSCROLLBAR, GAME_OPTIONS_BACKGROUND, WID_GO_SCROLLBAR), EndContainer(),