From be3c212baee45affe876e82e8d14fc9596fc4e27 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 9 May 2023 20:37:21 -0500 Subject: [PATCH] andlabs: grid w,h work again kinda Signed-off-by: Jeff Carr --- redraw.go | 4 ++++ toolkit/andlabs/common.go | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/redraw.go b/redraw.go index 48f1d17..d5cea53 100644 --- a/redraw.go +++ b/redraw.go @@ -35,6 +35,10 @@ func (n *Node) redo(plug *aplug) { a.X = n.X a.Y = n.Y + // grid stuff + a.AtW = n.AtW + a.AtH = n.AtH + // used for values a.I = n.I a.S = n.S diff --git a/toolkit/andlabs/common.go b/toolkit/andlabs/common.go index c8ecae1..ff157ab 100644 --- a/toolkit/andlabs/common.go +++ b/toolkit/andlabs/common.go @@ -38,6 +38,11 @@ func addWidget(a *toolkit.Action, tk *andlabsT) *node { n.X = a.X n.Y = a.Y + n.W = a.W + n.H = a.H + n.AtW = a.AtW + n.AtH = a.AtH + // store the internal toolkit information n.tk = tk