diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/station_gui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 8f4602e90..ec031296c 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -1265,7 +1265,7 @@ static const NWidgetPart _nested_select_station_widgets[] = { NWidget(WWT_CAPTION, COLOUR_DARK_GREEN, JSW_WIDGET_CAPTION), SetDataTip(STR_JOIN_STATION_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS), EndContainer(), NWidget(NWID_HORIZONTAL), - NWidget(WWT_PANEL, COLOUR_DARK_GREEN, JSW_PANEL), SetMinimalSize(188, 66), SetResize(1, 10), EndContainer(), + NWidget(WWT_PANEL, COLOUR_DARK_GREEN, JSW_PANEL), SetResize(1, 0), EndContainer(), NWidget(NWID_VERTICAL), NWidget(WWT_SCROLLBAR, COLOUR_DARK_GREEN, JSW_SCROLLBAR), NWidget(WWT_RESIZEBOX, COLOUR_DARK_GREEN, JSW_RESIZEBOX), @@ -1307,9 +1307,10 @@ struct SelectStationWindow : Window { } resize->height = d.height; + d.height *= 5; d.width += WD_FRAMERECT_RIGHT + WD_FRAMERECT_LEFT; d.height += WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM; - *size = maxdim(*size, d); + *size = d; } virtual void OnPaint() |