diff options
Diffstat (limited to 'toolkit/gocui/common.go')
| -rw-r--r-- | toolkit/gocui/common.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/toolkit/gocui/common.go b/toolkit/gocui/common.go index 1b0d61f..09c58f0 100644 --- a/toolkit/gocui/common.go +++ b/toolkit/gocui/common.go @@ -22,9 +22,9 @@ func makeWidget(a *toolkit.Action) *cuiWidget { t := len(w.text) w.realWidth = t + me.buttonPadding - w.realHeight = me.defaultHeight + w.realHeight = me.DefaultHeight w.gocuiSize.width = t + me.buttonPadding - w.gocuiSize.height = me.defaultHeight + w.gocuiSize.height = me.DefaultHeight w.widgetType = a.WidgetType w.id = a.WidgetId @@ -33,6 +33,11 @@ func makeWidget(a *toolkit.Action) *cuiWidget { // set the gocui view.Frame = true by default w.frame = true + if (w.frame) { + w.realHeight += me.FramePadH + w.gocuiSize.height += me.FramePadH + } + if w.widgetType == toolkit.Root { log(logInfo, "setupWidget() FOUND ROOT w.id =", w.id, "w.parent", w.parent, "ParentId =", a.ParentId) w.id = 0 |
