diff options
author | terkhen <terkhen@openttd.org> | 2010-03-20 12:21:01 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-03-20 12:21:01 +0000 |
commit | e27e5febb60f1cd2a2c70b100652c9365d97dbbd (patch) | |
tree | 002478f638f267a6fb02fcf130d34aca31fb0ef7 | |
parent | 7ef97932d93050d2e0fb78e77179945d5904e392 (diff) | |
download | openttd-e27e5febb60f1cd2a2c70b100652c9365d97dbbd.tar.xz |
(svn r19480) -Fix: Stop reducing the size of the vehicle list after selecting a vehicle with a long description.
-rw-r--r-- | src/build_vehicle_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index 4a0636788..ae787602b 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -1161,8 +1161,9 @@ struct BuildVehicleWindow : Window { needed_height = max(needed_height, text_end - (int)nwi->pos_y + WD_FRAMERECT_BOTTOM); } if (needed_height != this->details_height) { // Details window are not high enough, enlarge them. + int resize = needed_height - this->details_height; this->details_height = needed_height; - this->ReInit(); + this->ReInit(0, resize); return; } } |