From 962a84e056fd524ed458391961510a1c32892895 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 3 Mar 2014 17:44:03 -0500 Subject: Fixed Mac OS X control placement flipping. This is done by passing the height of the window around setRect() calls to avoid polling the content view frame each time. --- checkbox.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'checkbox.go') diff --git a/checkbox.go b/checkbox.go index 4e07a0d..5dfd3d1 100644 --- a/checkbox.go +++ b/checkbox.go @@ -68,11 +68,11 @@ func (c *Checkbox) make(window *sysData) error { return nil } -func (c *Checkbox) setRect(x int, y int, width int, height int) error { +func (c *Checkbox) setRect(x int, y int, width int, height int, winheight int) error { c.lock.Lock() defer c.lock.Unlock() - return c.sysData.setRect(x, y, width, height) + return c.sysData.setRect(x, y, width, height, winheight) } func (c *Checkbox) preferredSize() (width int, height int, err error) { -- cgit v1.2.3