summaryrefslogtreecommitdiff
path: root/toolkit/gocui/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-05 19:33:31 -0500
committerJeff Carr <[email protected]>2023-04-05 19:33:31 -0500
commit0c46d57acdd77965747cfc0e4ffd109332d85c89 (patch)
treee455c93fd162e784b1fc5493e9de6df80e356412 /toolkit/gocui/debug.go
parentf0052b9af8273feb852ba5bdfc3efb3673ff329e (diff)
more fixes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/debug.go')
-rw-r--r--toolkit/gocui/debug.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/toolkit/gocui/debug.go b/toolkit/gocui/debug.go
index 91c3d98..8fef722 100644
--- a/toolkit/gocui/debug.go
+++ b/toolkit/gocui/debug.go
@@ -46,16 +46,17 @@ 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("W,H()=(%2d,%2d) ", w.startW, w.startH)
+ 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) ",
- w.gocuiSize.startW, w.gocuiSize.startH,
+ 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:
- s1 += fmt.Sprintf("L()=(%2d,%2d,%2d,%2d)",
- w.logicalSize.w0, w.logicalSize.h0, w.logicalSize.w1, w.logicalSize.h1)
+ // s1 += fmt.Sprintf("L()=(%2d,%2d,%2d,%2d)",
+ // w.logicalSize.w0, w.logicalSize.h0, w.logicalSize.w1, w.logicalSize.h1)
}
log(b, s1, s, w.widgetType, ",", w.name) // , "text=", w.text)