1
0
Fork 0

(svn r19480) -Fix: Stop reducing the size of the vehicle list after selecting a vehicle with a long description.

release/1.1
terkhen 2010-03-20 12:21:01 +00:00
parent 7ef97932d9
commit e27e5febb6
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}