(svn r11993) -Fix: Resize station/roadstop/dock/airport construction windows if cargo acceptance list is too long.
This commit is contained in:
@@ -254,7 +254,13 @@ static void BuildDockStationWndProc(Window *w, WindowEvent *e)
|
||||
SetTileSelectSize(1, 1);
|
||||
}
|
||||
|
||||
DrawStationCoverageAreaText(4, 50, SCT_ALL, rad);
|
||||
int text_end = DrawStationCoverageAreaText(4, 50, SCT_ALL, rad) + 4;
|
||||
if (text_end > w->widget[2].bottom) {
|
||||
SetWindowDirty(w);
|
||||
ResizeWindowForWidget(w, 2, 0, text_end - w->widget[2].bottom);
|
||||
SetWindowDirty(w);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user