From 8bf2b5cc76cf4904e844f6d10ff1bafd65e762db Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 24 Feb 2014 11:18:47 -0500 Subject: [PATCH] Adjusted main_test.go to make use of SetStretchy(). IT WORKS! :D --- main_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main_test.go b/main_test.go index bc17535..3917fef 100644 --- a/main_test.go +++ b/main_test.go @@ -19,6 +19,8 @@ func TestMain(t *testing.T) { l := NewLabel("This is a label") b3 := NewButton("List Info") s3 := NewStack(Horizontal, l, b3) + s3.SetStretchy(0) +// s3.SetStretchy(1) s0 := NewStack(Vertical, s2, c, cb1, cb2, e, s3) lb1 := NewListbox(true, "Select One", "Or More", "To Continue") lb2 := NewListbox(false, "Select", "Only", "One", "Please") @@ -32,7 +34,11 @@ func TestMain(t *testing.T) { } doAdjustments() s1 := NewStack(Vertical, lb2, lb1) + s1.SetStretchy(0) + s1.SetStretchy(1) s := NewStack(Horizontal, s1, s0) + s.SetStretchy(0) + s.SetStretchy(1) err := w.Open(s) if err != nil { panic(err)