fix a width/height confusion for the map list height,

also don't subtract the border size from the height as the client area
size seems to factor this in (the ok and cancel buttons are also
aligned that way)
This commit is contained in:
uso 2007-08-19 19:45:45 +00:00
parent 13f2f6f4fb
commit 49899df81f

View file

@ -684,7 +684,7 @@ void create::layout_children(const SDL_Rect& rect)
ypos += map_label_.height() + border_size;
maps_menu_.set_max_width(200);
maps_menu_.set_max_height(ca.h + ca.x - ypos - border_size);
maps_menu_.set_max_height(ca.h + ca.y - ypos);
maps_menu_.set_location(xpos, ypos);
// Menu dimensions are only updated when items are set. So do this now.
int mapsel_save = maps_menu_.selection();