From 01ac243151f8bcb72bc66405dc7c80d239c2abd9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 28 Jan 2024 21:38:12 -0600 Subject: pass grid state Signed-off-by: Jeff Carr --- action.go | 3 +++ 1 file changed, 3 insertions(+) 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 } -- cgit v1.2.3