gui2/tchat_log: Use GUI_FORCE_WIDGET_MINIMUM_SIZE macro instead of local hack
Turns out there already was a somewhat more elegant solution in use for the GUI2 lobby and macroified for everyone else. It uses a stacked_widget with a spacer within instead of the awkward 2x2 {[central widget,spacer],[spacer,spacer]} grid we were using here.
This commit is contained in:
parent
393ebb447c
commit
a4340c9375
1 changed files with 7 additions and 36 deletions
|
@ -149,42 +149,13 @@
|
|||
# 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]
|
||||
{GUI_FORCE_WIDGET_MINIMUM_SIZE 200 250 (
|
||||
[scroll_label]
|
||||
id = "msg"
|
||||
definition = "description"
|
||||
label = ""
|
||||
[/scroll_label]
|
||||
)}
|
||||
[/column]
|
||||
[/row]
|
||||
[row] #status
|
||||
|
|
Loading…
Add table
Reference in a new issue