File Dialog: more sensible size

This commit is contained in:
Charles Dang 2016-10-05 18:22:42 +11:00
parent 86ef55ef5d
commit f7100f2315

View file

@ -13,14 +13,11 @@
automatic_placement = "false"
width = 800
height = 800
width = "(min(screen_width, 700))"
height = "(min(screen_height, 750))"
# FIXME: optimally, we'd subtract window_height or window_width / 2 from the screen size,
# but GUI2 seems to be bugged and the window isn't placed properly.
# For now, use a hardcoded value of half the width and height.
x = "((screen_width / 2) - 400)"
y = "((screen_height / 2) - 400)"
x = "((screen_width / 2) - (window_width / 2))"
y = "((screen_height / 2) - (window_height / 2))"
[linked_group]
id = "icon"
@ -114,6 +111,7 @@
id = "current_dir"
definition = "default"
label = ""
wrap = false
[/label]
[/column]