diff options
| author | Jeff Carr <[email protected]> | 2023-04-26 01:59:42 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-26 01:59:42 -0500 |
| commit | 7af6242cbfbd2d18461415e8421146f94093e8ca (patch) | |
| tree | 0bfdbc452b83cef498d32ad813bd28f0d2dbc149 /toolkit/gocui/common.go | |
| parent | 4b9b381bcf02c212d72f55d4738943941e843250 (diff) | |
gocui: closer to working layout
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/common.go')
| -rw-r--r-- | toolkit/gocui/common.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/toolkit/gocui/common.go b/toolkit/gocui/common.go index 9f10e94..93dfbb6 100644 --- a/toolkit/gocui/common.go +++ b/toolkit/gocui/common.go @@ -20,11 +20,11 @@ func makeWidget(a *toolkit.Action) *cuiWidget { t := len(w.text) - w.gocuiSize.width = t + me.PadW - w.gocuiSize.height = me.DefaultHeight + me.PadH + w.gocuiSize.w1 = w.gocuiSize.w0 + t + me.PadW + w.gocuiSize.h1 = w.gocuiSize.h0 + me.DefaultHeight + me.PadH - w.realWidth = w.gocuiSize.width - w.realHeight = w.gocuiSize.height + w.realWidth = w.gocuiSize.Width() + w.realHeight = w.gocuiSize.Height() // set the gocui view.Frame = true by default w.frame = true |
