diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-03 17:44:03 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-03 17:44:03 -0500 |
| commit | 962a84e056fd524ed458391961510a1c32892895 (patch) | |
| tree | 515e6e1b6ad5662b99291f8132edc2afd9ca6e91 /grid.go | |
| parent | 6c3389283138cb4baf5ccc3d5785c318e376f26f (diff) | |
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.
Diffstat (limited to 'grid.go')
| -rw-r--r-- | grid.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -109,7 +109,7 @@ func (g *Grid) make(window *sysData) error { return nil } -func (g *Grid) setRect(x int, y int, width int, height int) error { +func (g *Grid) setRect(x int, y int, width int, height int, winheight int) error { g.lock.Lock() defer g.lock.Unlock() @@ -165,7 +165,7 @@ func (g *Grid) setRect(x int, y int, width int, height int) error { w = g.colwidths[col] h = g.rowheights[row] } - err := c.setRect(x, y, w, h) + err := c.setRect(x, y, w, h, winheight) if err != nil { return fmt.Errorf("error setting size of control (%d,%d) in Grid.setRect(): %v", row, col, err) } |
