Accidentally left Grid expand code commented out. Fixed.

This commit is contained in:
Pietro Gagliardi 2014-09-03 18:07:27 -04:00
parent 9a2c3c4bde
commit fcd55f7636
1 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ func (g *grid) allocate(x int, y int, width int, height int, d *sizing) (allocat
height -= rowheights[y] height -= rowheights[y]
} }
} }
/* for x, expand := range xexpand { for x, expand := range xexpand {
if expand { if expand {
colwidths[x] = width / nxexpand colwidths[x] = width / nxexpand
} }
@ -252,7 +252,7 @@ func (g *grid) allocate(x int, y int, width int, height int, d *sizing) (allocat
rowheights[y] = height / nyexpand rowheights[y] = height / nyexpand
} }
} }
*/
// 4) reset the final coordinates for the next step // 4) reset the final coordinates for the next step
for i := range g.controls { for i := range g.controls {
g.controls[i].finalx = 0 g.controls[i].finalx = 0