summaryrefslogtreecommitdiff
path: root/size.go
diff options
context:
space:
mode:
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