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:
parent
13f2f6f4fb
commit
49899df81f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue