diff --git a/data/gui/default/window/drop_down_list.cfg b/data/gui/default/window/drop_down_list.cfg index 8bac42574d2b..3487b682b475 100644 --- a/data/gui/default/window/drop_down_list.cfg +++ b/data/gui/default/window/drop_down_list.cfg @@ -9,11 +9,11 @@ [resolution] maximum_width = 9999 maximum_height = 9999 - ## click_dismiss = "false" #define FORMULA_WINDOW_HEIGHT min(if(window_height > 0, window_height, screen_width), max(button_y, screen_height - button_h - button_y)) #enddef definition = "default" - width="(if(window_width > 0, window_width, screen_width))" + ## For some unknown reason qwe need a +5 here othwerwise the dialog won't really have the same size as the button. + width="(max(button_w + 5, if(window_width > 0, window_width, screen_width)))" height="({FORMULA_WINDOW_HEIGHT})" ## Show the droplist below or above the button, whereever we have enough space. Below is preffered. x="(min(button_x, screen_width - window_width))" @@ -55,6 +55,9 @@ min(if(window_height > 0, window_height, screen_width), max(button_y, screen_hei [row] [column] + border = "all" + border_size = 5 + horizontal_alignment = "left" [label] id="label" [/label]