summaryrefslogtreecommitdiff
path: root/toolkit/gocui/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-06 11:19:04 -0500
committerJeff Carr <[email protected]>2023-04-06 11:19:04 -0500
commitc16b8695332485071331bbcab924327cd2bab6e5 (patch)
treeec66859a0e958f0f7eb752a7935941e65fc11c05 /toolkit/gocui/debug.go
parent012c22faf3d3611d247fbe53928347770f6f4fbc (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/debug.go')
-rw-r--r--toolkit/gocui/debug.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/toolkit/gocui/debug.go b/toolkit/gocui/debug.go
index 9d036bb..d8bfd6e 100644
--- a/toolkit/gocui/debug.go
+++ b/toolkit/gocui/debug.go
@@ -48,15 +48,10 @@ func (w *cuiWidget) showWidgetPlacement(b bool, s string) {
pId = w.parent.id
}
s1 = fmt.Sprintf("(wId,pId)=(%2d,%2d) ", w.id, pId)
- s1 += fmt.Sprintf("start()=(%2d,%2d) ", w.startW, w.startH)
- s1 += fmt.Sprintf("size()=(%2d,%2d) ", w.realWidth, w.realHeight)
- s1 += fmt.Sprintf("gocui()=(%2d,%2d,%2d,%2d,%2d,%2d) ",
+ s1 += fmt.Sprintf("s/n (%2d,%2d) (%2d,%2d) ", w.startW, w.startH, w.nextW, w.nextH)
+ s1 += fmt.Sprintf("size (%2d,%2d) ", w.realWidth, w.realHeight)
+ s1 += fmt.Sprintf("gocui=(%2d,%2d)(%2d,%2d,%2d,%2d)",
w.gocuiSize.width, w.gocuiSize.height,
w.gocuiSize.w0, w.gocuiSize.h0, w.gocuiSize.w1, w.gocuiSize.h1)
- switch w.widgetType {
- case toolkit.Grid:
- s1 += fmt.Sprintf("next()=(%2d,%2d)", w.nextW, w.nextH)
- default:
- }
log(b, s1, s, w.widgetType, ",", w.name) // , "text=", w.text)
}