diff options
| author | Jeff Carr <[email protected]> | 2025-02-06 19:34:26 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-06 19:34:26 -0600 |
| commit | 176831d0f3b7160e3c8fed56c481f43163e9a2b4 (patch) | |
| tree | b936b4d6c49e58dbbd205a2c57000a663f814527 /debug.go | |
| parent | 2a5734892a85804b6c44a0cd8dd22d20fed21d96 (diff) | |
trying to debug grid spacing
Diffstat (limited to 'debug.go')
| -rw-r--r-- | debug.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 ", "", "") |
