diff options
Diffstat (limited to 'size.go')
| -rw-r--r-- | size.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -91,11 +91,11 @@ func (w *guiWidget) sizeGrid() (int, int) { sizeW, sizeH := child.Size() // set the child's realWidth, and grid offset - if w.widths[child.node.State.AtW] < sizeW { - w.widths[child.node.State.AtW] = sizeW + if w.widths[child.GridW()] < sizeW { + w.widths[child.GridW()] = sizeW } - if w.heights[child.node.State.AtH] < sizeH { - w.heights[child.node.State.AtH] = sizeH + if w.heights[child.GridH()] < sizeH { + w.heights[child.GridH()] = sizeH } } |
