diff options
| author | Jeff Carr <[email protected]> | 2023-05-09 20:37:21 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-05-09 20:37:21 -0500 |
| commit | cb0e8a7146c055b47f42d0a1005b93e08492e6ca (patch) | |
| tree | 1e558a3ab3b39786be551dc0bbf30e0efe93986d | |
| parent | 26b06253d540fbcac2ae1372aa7fc0b1089bab98 (diff) | |
andlabs: grid w,h work again kinda
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | redraw.go | 4 | ||||
| -rw-r--r-- | toolkit/andlabs/common.go | 5 |
2 files changed, 9 insertions, 0 deletions
@@ -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 |
