summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-06 19:34:26 -0600
committerJeff Carr <[email protected]>2025-02-06 19:34:26 -0600
commit176831d0f3b7160e3c8fed56c481f43163e9a2b4 (patch)
treeb936b4d6c49e58dbbd205a2c57000a663f814527 /debug.go
parent2a5734892a85804b6c44a0cd8dd22d20fed21d96 (diff)
trying to debug grid spacing
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/debug.go b/debug.go
index 3c83280..e820c07 100644
--- a/debug.go
+++ b/debug.go
@@ -71,9 +71,11 @@ func (tk *guiWidget) dumpWidget(s string) {
s1 += fmt.Sprintf(" full=(%3d,%3d,%3d,%3d)", tk.full.w0, tk.full.h0, tk.full.w1, tk.full.h1)
if tk.node.Parent != nil {
if tk.node.Parent.WidgetType == widget.Grid {
- s1 += fmt.Sprintf("At(%3d,%3d) ", tk.node.State.AtW, tk.node.State.AtH)
+ s1 += fmt.Sprintf("At(%3d,%3d)", tk.node.State.AtW, tk.node.State.AtH)
+ s1 += fmt.Sprintf("(%3d,%3d) ", tk.parent.widths[tk.node.State.AtW], tk.parent.heights[tk.node.State.AtH])
} else {
- s1 += fmt.Sprintf(" %3s %3s ", "", "")
+ s1 += fmt.Sprintf(" %3s %3s ", "", "")
+ s1 += fmt.Sprintf(" %3s %3s ", "", "")
}
} else {
s1 += fmt.Sprintf(" %3s %3s ", "", "")