summaryrefslogtreecommitdiff
path: root/toolkit/gocui/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-05 18:10:53 -0500
committerJeff Carr <[email protected]>2023-04-05 18:10:53 -0500
commit56c45d93e435e1ab121cf2fad26e48312fff9244 (patch)
tree2ebe899b2b85da8b16ed116fb874c386effa08ec /toolkit/gocui/debug.go
parent6b1de07b09a9fd665249d2b5f72b5216fed06479 (diff)
gocui: store more in w.gocuiSize.
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/debug.go')
-rw-r--r--toolkit/gocui/debug.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/gocui/debug.go b/toolkit/gocui/debug.go
index 4e7bf83..770c0c5 100644
--- a/toolkit/gocui/debug.go
+++ b/toolkit/gocui/debug.go
@@ -47,9 +47,9 @@ func (w *cuiWidget) showWidgetPlacement(b bool, s string) {
}
s1 = fmt.Sprintf("(wId,pId)=(%2d,%2d) ", w.id, pId)
s1 += fmt.Sprintf("W,H()=(%2d,%2d) ", w.startW, w.startH)
- s1 += fmt.Sprintf("size()=(%2d,%2d) ", w.realWidth, w.realHeight)
- s1 += fmt.Sprintf("gocui()=(%2d,%2d,%2d,%2d) ", w.gocuiSize.w0, w.gocuiSize.h0, w.gocuiSize.w1, w.gocuiSize.h1)
-
+ s1 += fmt.Sprintf("gocui()=(%2d,%2d,%2d,%2d,%2d,%2d) ",
+ w.gocuiSize.startW, w.gocuiSize.startH,
+ 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)