From 176831d0f3b7160e3c8fed56c481f43163e9a2b4 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 6 Feb 2025 19:34:26 -0600 Subject: trying to debug grid spacing --- debug.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'debug.go') 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 ", "", "") -- cgit v1.2.3