diff options
| author | Jeff Carr <[email protected]> | 2025-02-19 04:22:26 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-19 17:39:45 -0600 |
| commit | a5800917e8383929e5c9dc8ad0265d6a4b4357bf (patch) | |
| tree | 3805524ee25d083ce742007e26e31cb08b449628 /size.go | |
| parent | c64592f326aa4a76d9c773e2d4f8b775fac86b02 (diff) | |
still more
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 } } |
