Forgot to size Grid and SimpleGrid's container properly. Fixed.
This commit is contained in:
parent
229ffd37b2
commit
fa67147f54
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue