Index: src/statusbar_gui.cpp
===================================================================
--- src/statusbar_gui.cpp (revision 27145)
+++ src/statusbar_gui.cpp (working copy)
@@ -90,6 +90,11 @@
this->ticker_scroll = TICKER_STOP;
this->reminder_timeout = REMINDER_STOP;
+ /* Give the statusbar the same width as the toolbar. */
+ Window *toolbar = FindWindowById(WC_MAIN_TOOLBAR, 0);
+ assert(toolbar != NULL);
+ desc->default_width = toolbar->window_desc->default_width;
+
this->InitNested();
CLRBITS(this->flags, WF_WHITE_BORDER);
PositionStatusbar(this);
Index: src/toolbar_gui.cpp
===================================================================
--- src/toolbar_gui.cpp (revision 27145)
+++ src/toolbar_gui.cpp (working copy)
@@ -1351,6 +1351,10 @@
}
}
w->window_desc->default_width = nbuttons * this->smallest_x;
+
+ /* Give the statusbar the same width as the toolbar. */
+ Window *statusbar = FindWindowById(WC_STATUS_BAR, 0);
+ if (statusbar != NULL) statusbar->window_desc->default_width = w->window_desc->default_width;
}
void AssignSizePosition(SizingType sizing, uint x, uint y, uint given_width, uint given_height, bool rtl)