Forgot to size Grid and SimpleGrid's container properly. Fixed.

This commit is contained in:
Pietro Gagliardi 2014-10-16 16:20:09 -04:00
parent 229ffd37b2
commit fa67147f54
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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
}