summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-28 20:36:59 -0600
committerJeff Carr <[email protected]>2024-01-28 20:36:59 -0600
commit1d7b9613a68abdd41ad1cf0b6803b0ab6593e813 (patch)
treea8fff648dbaa8fe6b5aea55165fcf766258118fd /debug.go
parent3029f04bd2b82eadfe7d5569616c322175a94c64 (diff)
sizes are close to correct
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/debug.go b/debug.go
index 71e6958..f9a5b4c 100644
--- a/debug.go
+++ b/debug.go
@@ -32,15 +32,15 @@ func (w *guiWidget) showWidgetPlacement(s string) {
s1 = fmt.Sprintf("(wId,pId)=(%2d,%2d) ", w.node.WidgetId, pId)
if w.Visible() {
sizeW, sizeH := w.Size()
- s1 += fmt.Sprintf("gocui=(%2d,%2d)(%2d,%2d,%2d,%2d)",
- sizeW, sizeH,
+ s1 += fmt.Sprintf("size=(%2d,%2d)", sizeW, sizeH)
+ s1 += fmt.Sprintf("gocui=(%2d,%2d,%2d,%2d)",
w.gocuiSize.w0, w.gocuiSize.h0, w.gocuiSize.w1, w.gocuiSize.h1)
} else {
s1 += fmt.Sprintf(" w.Visable() == false ")
}
if w.node.Parent != nil {
if w.node.Parent.WidgetType == widget.Grid {
- s1 += fmt.Sprintf("At(%2d,%2d) ", w.AtW, w.AtH)
+ s1 += fmt.Sprintf("At(%2d,%2d) ", w.node.State.AtW, w.node.State.AtH)
}
}
tmp := "." + w.String() + "."