summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-28 21:38:12 -0600
committerJeff Carr <[email protected]>2024-01-28 21:38:12 -0600
commit01ac243151f8bcb72bc66405dc7c80d239c2abd9 (patch)
tree570440d9df30bb938935ac27ff89ccfcc9cdf4ed
parentfd1e048167ef152a5c04bc58f00ec22a0dffc08c (diff)
pass grid state
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--action.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/action.go b/action.go
index 0057abe..a547699 100644
--- a/action.go
+++ b/action.go
@@ -88,6 +88,9 @@ func getNewAction(n *Node, atype widget.ActionType) *widget.Action {
a.State.GridOffset.X = n.AtW
a.State.GridOffset.Y = n.AtH
+ a.State.AtW = n.AtW
+ a.State.AtH = n.AtH
+
if n.parent != nil {
a.ParentId = n.parent.id
}