diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp index 9f975b5117..1af74f5a85 100644 --- a/src/statusbar_gui.cpp +++ b/src/statusbar_gui.cpp @@ -107,7 +107,7 @@ struct StatusBarWindow : Window { void FindWindowPlacementAndResize(int def_width, int def_height) override { - Window::FindWindowPlacementAndResize(std::min(_toolbar_width, _screen.width - GetMinSizing(NWST_STEP) * 2), def_height); + Window::FindWindowPlacementAndResize(std::min(_toolbar_width, _screen.width * 2 / 3 - GetMinSizing(NWST_STEP) * 2), def_height); } void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) override diff --git a/src/window.cpp b/src/window.cpp index c6b56f71c2..34be51f5d8 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -3924,7 +3924,7 @@ void RelocateAllWindows(int neww, int newh) break; case WC_STATUS_BAR: - ResizeWindow(w, std::min(neww, std::min(_toolbar_width, _screen.width - SETTING_BUTTON_HEIGHT * 2)) - w->width, 0, false); + ResizeWindow(w, std::min(neww, std::min(_toolbar_width, _screen.width * 2 / 3 - SETTING_BUTTON_HEIGHT * 2)) - w->width, 0, false); top = newh - w->height; left = PositionStatusbar(w);