summaryrefslogtreecommitdiff
path: root/src/statusbar_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/statusbar_gui.cpp')
-rw-r--r--src/statusbar_gui.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp
index 151fa5c37..25efa6bb1 100644
--- a/src/statusbar_gui.cpp
+++ b/src/statusbar_gui.cpp
@@ -24,6 +24,7 @@
#include "saveload/saveload.h"
#include "window_func.h"
#include "statusbar_gui.h"
+#include "toolbar_gui.h"
#include "core/geometry_func.hpp"
#include "widgets/statusbar_widget.h"
@@ -101,6 +102,11 @@ struct StatusBarWindow : Window {
return pt;
}
+ virtual void FindWindowPlacementAndResize(int def_width, int def_height)
+ {
+ Window::FindWindowPlacementAndResize(_toolbar_width, def_height);
+ }
+
virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize)
{
Dimension d;
@@ -238,7 +244,7 @@ static const NWidgetPart _nested_main_status_widgets[] = {
};
static WindowDesc _main_status_desc(
- WDP_MANUAL, NULL, 640, 12,
+ WDP_MANUAL, NULL, 0, 0,
WC_STATUS_BAR, WC_NONE,
WDF_NO_FOCUS,
_nested_main_status_widgets, lengthof(_nested_main_status_widgets)