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) {
|
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 {
|
if len(g.controls) == 0 {
|
||||||
// nothing to do
|
// nothing to do
|
||||||
return
|
return
|
||||||
|
|
|
@ -118,6 +118,7 @@ func (g *simpleGrid) resize(x int, y int, width int, height int, d *sizing) {
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g.container.resize(x, y, width, height, d)
|
||||||
if len(g.controls) == 0 {
|
if len(g.controls) == 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue