summaryrefslogtreecommitdiff
path: root/size.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-09 04:03:48 -0600
committerJeff Carr <[email protected]>2025-02-09 04:03:48 -0600
commit955afcb1a98c87dfd51182fa03a25b8ad6495254 (patch)
treeb04fe2a58148a74331301fc6c87bf9278888dc67 /size.go
parentaf3fec6f2073b2d184c2f7ecb10d24658ad2970c (diff)
text boxes are forced 5 spaces wide
Diffstat (limited to 'size.go')
-rw-r--r--size.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/size.go b/size.go
index f0cff48..68dcf38 100644
--- a/size.go
+++ b/size.go
@@ -76,7 +76,7 @@ func (tk *guiWidget) Size() (int, int) {
case widget.Label:
return len(tk.String()) + 2, 1
case widget.Textbox:
- return len(tk.String()) + 2, 3 // TODO: compute this based on 'window dense'
+ return len(tk.String()) + 10, 3 // TODO: compute this based on 'window dense'
case widget.Checkbox:
return len(tk.String()) + 2, 3 // TODO: compute this based on 'window dense'
case widget.Button: