Skip to content

Commit

Permalink
make dropdown list width at least the width of the combobox
Browse files Browse the repository at this point in the history
This also makes the text in the list left-aligned.

patch by vultraz
  • Loading branch information
gfgtdf committed Jan 19, 2016
1 parent 64faa77 commit c880d82
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions data/gui/default/window/drop_down_list.cfg
Expand Up @@ -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))"
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit c880d82

Please sign in to comment.