gui2/tchat_log: Hack to set a minimum cell size to 200x250
Because this window many contain a lot of text in both directions, having it change size dynamically every time the log page is switched or a new text filter is entered can be extremely annoying for the player. Setting the scroll_label's parent (now ancestor) cell's minimum size to something that isn't 0x0 mitigates the issue to some extent. Better than nothing, I guess. (Tested with a screen resolution of 800x480.)
This commit is contained in:
parent
1cdc5df63d
commit
b0950f006c
1 changed files with 48 additions and 5 deletions
|
@ -137,11 +137,54 @@
|
|||
border = "all"
|
||||
border_size = 5
|
||||
horizontal_grow = "true"
|
||||
[scroll_label]
|
||||
id = "msg"
|
||||
definition = "description"
|
||||
label = ""
|
||||
[/scroll_label]
|
||||
|
||||
#
|
||||
# HACK:
|
||||
# In order to reserve a minimum screen space for the
|
||||
# central widget and avoid sudden window size changes when
|
||||
# switching pages or entering text in the search box, we
|
||||
# use two spacer widgets within a subgrid to restrict this
|
||||
# cell's minimum size. It's important to keep the spacers'
|
||||
# dimensions within certain limits so as to not cause
|
||||
# dialog-spanning scrollbars to appear on 800x480.
|
||||
#
|
||||
|
||||
[grid]
|
||||
|
||||
[row]
|
||||
[column]
|
||||
grow_factor=1
|
||||
horizontal_grow = "true"
|
||||
vertical_grow = "true"
|
||||
[scroll_label]
|
||||
id = "msg"
|
||||
definition = "description"
|
||||
label = ""
|
||||
[/scroll_label]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor=0
|
||||
horizontal_grow = "false"
|
||||
[spacer]
|
||||
height=250
|
||||
[/spacer]
|
||||
[/column]
|
||||
[/row]
|
||||
|
||||
[row]
|
||||
[column]
|
||||
[spacer]
|
||||
width=200
|
||||
[/spacer]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
[spacer][/spacer]
|
||||
[/column]
|
||||
[/row]
|
||||
|
||||
[/grid]
|
||||
[/column]
|
||||
[/row]
|
||||
[row] #status
|
||||
|
|
Loading…
Add table
Reference in a new issue