diff options
| author | Jeff Carr <[email protected]> | 2023-04-06 11:19:04 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-06 11:19:04 -0500 |
| commit | c16b8695332485071331bbcab924327cd2bab6e5 (patch) | |
| tree | ec66859a0e958f0f7eb752a7935941e65fc11c05 /toolkit/gocui/add.go | |
| parent | 012c22faf3d3611d247fbe53928347770f6f4fbc (diff) | |
gocui: more or less correct sizesv0.7.7
init to normal state (debug=off)
size handling cleanups
keep trying to fix grid widget
move towards cmdline/auto loading of gocui
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/add.go')
| -rw-r--r-- | toolkit/gocui/add.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/toolkit/gocui/add.go b/toolkit/gocui/add.go index 6ff3691..e207b9f 100644 --- a/toolkit/gocui/add.go +++ b/toolkit/gocui/add.go @@ -16,8 +16,8 @@ func (w *cuiWidget) setFake() { w.gocuiSize.width = t + 2 w.gocuiSize.height = me.defaultHeight - w.gocuiSize.startW = fakeStartWidth - w.gocuiSize.startH = fakeStartHeight + w.gocuiSize.w0 = fakeStartWidth + w.gocuiSize.h0 = fakeStartHeight fakeStartHeight += 3 if (fakeStartHeight > 24) { @@ -68,15 +68,10 @@ func (w *cuiWidget) addWidget() { t := len(w.text) w.gocuiSize.width = t + me.buttonPadding w.gocuiSize.height = me.defaultHeight - w.gocuiSize.startW = w.startW - w.gocuiSize.startH = w.startH - - w.setWH() return default: w.startW = w.parent.startW w.startH = w.parent.startH - w.setWH() } w.showWidgetPlacement(logInfo, "addWidget()") } |
