diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-25 14:10:43 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-25 14:10:43 -0400 |
| commit | 76781bc0dedd7d45a070fc12f9e2c9643b9c23d9 (patch) | |
| tree | 7ccd8cc7520f6dfe44ba9d00e24d97a5c80d6af4 | |
| parent | b5abbebf0ba6f01a95b79c10dde95c7fdbbff809 (diff) | |
Improved the label alignment test.
| -rw-r--r-- | test/main.go | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/test/main.go b/test/main.go index 16dcd55..4f340fa 100644 --- a/test/main.go +++ b/test/main.go @@ -367,12 +367,20 @@ func myMain() { var dialog_sret chan struct{} = nil if *labelAlignTest { - w := NewWindow("Label Align Test", 500, 100) - w.Open(NewHorizontalStack( + s := NewHorizontalStack(NewStandaloneLabel("Label"), NewLineEdit("")) + s.SetStretchy(1) + s2 := NewHorizontalStack(NewLabel("Label"), NewLineEdit("")) + s2.SetStretchy(1) + s = NewVerticalStack(s, s2, Space()) + s.SetStretchy(2) + s = NewHorizontalStack( NewButton("Button"), NewStandaloneLabel("Standalone"), NewLabel("Aligned"), - NewButton("Button"))) + NewButton("Button"), + s) + s.SetStretchy(4) + NewWindow("Label Align Test", 500, 100).Open(s) } mainloop: |
