summaryrefslogtreecommitdiff
path: root/size.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-30 10:32:53 -0600
committerJeff Carr <[email protected]>2024-01-30 10:32:53 -0600
commitf1b86c4e38075bb648059992eb38de040669c2bf (patch)
tree90ae8972287c9de7f0883612ede3bd7ffe9dd61c /size.go
parent21836a8001feefa142f00fb3a7f4746b93377434 (diff)
GPL
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'size.go')
-rw-r--r--size.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/size.go b/size.go
index 651e773..a04d50d 100644
--- a/size.go
+++ b/size.go
@@ -74,6 +74,8 @@ func (w *guiWidget) sizeGrid() (int, int) {
}
sizeW, sizeH := child.Size()
+ sizeW += 2
+
// set the child's realWidth, and grid offset
if w.widths[child.node.State.AtW] < sizeW {
w.widths[child.node.State.AtW] = sizeW