diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-18 08:57:53 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-18 08:57:53 -0400 |
| commit | 45acb35a6d89c2e7c7d2233f3613d04253f88922 (patch) | |
| tree | f01291c519c387510ef05d7a8f0131dafebeb0a6 /newctrl/grid.go | |
| parent | 772f03f4b3d4fb45ee0359af7742effdcee8a557 (diff) | |
Fixed control positioning on GTK+. This will also "fix" control positioning on Windows; next commit.
Diffstat (limited to 'newctrl/grid.go')
| -rw-r--r-- | newctrl/grid.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newctrl/grid.go b/newctrl/grid.go index 78af1b4..9e68e66 100644 --- a/newctrl/grid.go +++ b/newctrl/grid.go @@ -205,6 +205,8 @@ func (g *grid) resize(x int, y int, width int, height int, d *sizing) { return } + x, y, width, height = g.container.bounds(d) + // -2) get this Grid's padding xpadding := d.xpadding ypadding := d.ypadding |
