From fa67147f5477f2cbcb0ba4dd511907ea8cda723a Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 16 Oct 2014 16:20:09 -0400 Subject: [PATCH] Forgot to size Grid and SimpleGrid's container properly. Fixed. --- newctrl/grid.go | 2 ++ newctrl/simplegrid.go | 1 + 2 files changed, 3 insertions(+) diff --git a/newctrl/grid.go b/newctrl/grid.go index f8fd616..3c6f343 100644 --- a/newctrl/grid.go +++ b/newctrl/grid.go @@ -184,6 +184,8 @@ func (g *grid) mkgrid() (gg [][]int, colwidths []int, rowheights []int) { } func (g *grid) resize(x int, y int, width int, height int, d *sizing) { + g.container.resize(x, y, width, height, d) + if len(g.controls) == 0 { // nothing to do return diff --git a/newctrl/simplegrid.go b/newctrl/simplegrid.go index ac1f0ee..1cc3c55 100644 --- a/newctrl/simplegrid.go +++ b/newctrl/simplegrid.go @@ -118,6 +118,7 @@ func (g *simpleGrid) resize(x int, y int, width int, height int, d *sizing) { return b } + g.container.resize(x, y, width, height, d) if len(g.controls) == 0 { return }