diff options
Diffstat (limited to 'toolkit/gocui/common.go')
| -rw-r--r-- | toolkit/gocui/common.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toolkit/gocui/common.go b/toolkit/gocui/common.go index 6d0da27..cfb177b 100644 --- a/toolkit/gocui/common.go +++ b/toolkit/gocui/common.go @@ -20,6 +20,10 @@ func setupWidget(a *toolkit.Action) *cuiWidget { w.width = a.Width w.height = a.Height + t := len(w.text) + w.realWidth = t + me.buttonPadding + w.realHeight = me.defaultHeight + w.widgetType = a.WidgetType w.id = a.WidgetId // set the name used by gocui to the id |
