Improved the label alignment test.
This commit is contained in:
parent
b5abbebf0b
commit
76781bc0de
14
test/main.go
14
test/main.go
|
@ -367,12 +367,20 @@ func myMain() {
|
||||||
var dialog_sret chan struct{} = nil
|
var dialog_sret chan struct{} = nil
|
||||||
|
|
||||||
if *labelAlignTest {
|
if *labelAlignTest {
|
||||||
w := NewWindow("Label Align Test", 500, 100)
|
s := NewHorizontalStack(NewStandaloneLabel("Label"), NewLineEdit(""))
|
||||||
w.Open(NewHorizontalStack(
|
s.SetStretchy(1)
|
||||||
|
s2 := NewHorizontalStack(NewLabel("Label"), NewLineEdit(""))
|
||||||
|
s2.SetStretchy(1)
|
||||||
|
s = NewVerticalStack(s, s2, Space())
|
||||||
|
s.SetStretchy(2)
|
||||||
|
s = NewHorizontalStack(
|
||||||
NewButton("Button"),
|
NewButton("Button"),
|
||||||
NewStandaloneLabel("Standalone"),
|
NewStandaloneLabel("Standalone"),
|
||||||
NewLabel("Aligned"),
|
NewLabel("Aligned"),
|
||||||
NewButton("Button")))
|
NewButton("Button"),
|
||||||
|
s)
|
||||||
|
s.SetStretchy(4)
|
||||||
|
NewWindow("Label Align Test", 500, 100).Open(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
mainloop:
|
mainloop:
|
||||||
|
|
Loading…
Reference in New Issue