From 99feed762802516b74ab8b251cf376f3affa6cbb Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 15 Feb 2014 13:07:46 -0500 Subject: Removed setting the initial width and height in sysData.make() (this gets rid of the dummy 300x300 sizes from the controls) and added an explicit sysData.setWindowSize() to Window.Open() to ensure everything's sized properly. --- button.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'button.go') diff --git a/button.go b/button.go index 4e3d7e1..aa1c0bd 100644 --- a/button.go +++ b/button.go @@ -42,7 +42,7 @@ func (b *Button) make(window *sysData) error { defer b.lock.Unlock() b.sysData.event = b.Clicked - err := b.sysData.make(b.initText, 300, 300, window) + err := b.sysData.make(b.initText, window) if err != nil { return err } -- cgit v1.2.3