diff options
| author | Jeff Carr <[email protected]> | 2023-04-05 22:19:45 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-05 22:19:45 -0500 |
| commit | ec9a452c19aba587c1964a5c4bbc7f37ab58589b (patch) | |
| tree | 62c9dcb01fe1b5144e986744c1dd6409beaebe60 /toolkit/gocui/common.go | |
| parent | 4e69499be4bce986f5685ecbf12f662452b95c97 (diff) | |
gocui: it might actually work
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/common.go')
| -rw-r--r-- | toolkit/gocui/common.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toolkit/gocui/common.go b/toolkit/gocui/common.go index 663994d..a999539 100644 --- a/toolkit/gocui/common.go +++ b/toolkit/gocui/common.go @@ -23,6 +23,8 @@ func setupWidget(a *toolkit.Action) *cuiWidget { t := len(w.text) w.realWidth = t + me.buttonPadding w.realHeight = me.defaultHeight + w.gocuiSize.width = t + me.buttonPadding + w.gocuiSize.height = me.defaultHeight w.widgetType = a.WidgetType w.id = a.WidgetId |
