From a5800917e8383929e5c9dc8ad0265d6a4b4357bf Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 19 Feb 2025 04:22:26 -0600 Subject: still more --- size.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'size.go') diff --git a/size.go b/size.go index 94248ff..0d86128 100644 --- a/size.go +++ b/size.go @@ -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 } } -- cgit v1.2.3