diff options
| author | Jeff Carr <[email protected]> | 2023-04-25 22:24:45 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-25 22:24:45 -0500 |
| commit | 55ea779640098ce71a5f36785634f4e22f3cd601 (patch) | |
| tree | 2e909de2b4790d4d01c92ebba4785e642a6efd09 /toolkit/gocui/common.go | |
| parent | 2de69d0086a5d97a91647ecadf438ac3989759a8 (diff) | |
gocui: hmm. trying to reformat the layout
Signed-off-by: Jeff Carr <[email protected]>
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 |
