diff options
| author | Jeff Carr <[email protected]> | 2023-05-09 20:25:37 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-05-09 20:25:37 -0500 |
| commit | 26b06253d540fbcac2ae1372aa7fc0b1089bab98 (patch) | |
| tree | 9afc2600ce0633e85990f8376091d93fec7c6d3a /toolkit/andlabs/add.go | |
| parent | 45ef7f37c4af0495ccf988f2f726aaea24a999e4 (diff) | |
more code cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/add.go')
| -rw-r--r-- | toolkit/andlabs/add.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/andlabs/add.go b/toolkit/andlabs/add.go index 9d40b4f..c25603d 100644 --- a/toolkit/andlabs/add.go +++ b/toolkit/andlabs/add.go @@ -108,12 +108,12 @@ func (p *node) place(n *node) bool { switch p.WidgetType { case toolkit.Grid: log(debugGrid, "place() Grid try at Parent X,Y =", n.X, n.Y) - n.tk.gridX = n.X - n.tk.gridY = n.Y + n.tk.gridX = n.AtW - 1 + n.tk.gridY = n.AtH - 1 log(debugGrid, "place() Grid try at gridX,gridY", n.tk.gridX, n.tk.gridY) // at the very end, subtract 1 from X & Y since andlabs/ui starts counting at zero p.tk.uiGrid.Append(n.tk.uiControl, - n.tk.gridY - 1, n.tk.gridX - 1, 1, 1, + n.tk.gridY, n.tk.gridX, 1, 1, false, ui.AlignFill, false, ui.AlignFill) return true case toolkit.Group: |
