summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-05-09 20:37:21 -0500
committerJeff Carr <[email protected]>2023-05-09 20:37:21 -0500
commitcb0e8a7146c055b47f42d0a1005b93e08492e6ca (patch)
tree1e558a3ab3b39786be551dc0bbf30e0efe93986d
parent26b06253d540fbcac2ae1372aa7fc0b1089bab98 (diff)
andlabs: grid w,h work again kinda
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--redraw.go4
-rw-r--r--toolkit/andlabs/common.go5
2 files changed, 9 insertions, 0 deletions
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