summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newctrl/grid.go2
-rw-r--r--newctrl/simplegrid.go1
2 files changed, 3 insertions, 0 deletions
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
}