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 f1b1d75..4fe3b43 100644
--- a/size.go
+++ b/size.go
@@ -55,6 +55,8 @@ func (tk *guiWidget) Size() (int, int) {
}
}
return maxW + me.GroupPadW + 3, maxH
+ case widget.Label:
+ return len(tk.String()) + 2, 1
case widget.Checkbox:
return len(tk.String()) + 2, 3
}