summaryrefslogtreecommitdiff
path: root/grid.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-31 01:48:39 -0600
committerJeff Carr <[email protected]>2023-12-31 01:48:39 -0600
commit459a1639737791f7bad6961306adbddbf1d787a4 (patch)
treef6dea969d0a3915986ef2a3e2276ca5b091f5cca /grid.go
parente51c54a1a083b7e5ab9a6797a33325757ed34b29 (diff)
pad grid and group by default
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'grid.go')
-rw-r--r--grid.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/grid.go b/grid.go
index 77d64f4..9e613c2 100644
--- a/grid.go
+++ b/grid.go
@@ -32,6 +32,9 @@ func (n *Node) NewGrid(name string, w int, h int) *Node {
a := newAction(newNode, toolkit.Add)
sendAction(a)
+
+ // by default, always pad grids
+ newNode.Pad()
return newNode
}