summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}