diff options
| author | Jeff Carr <[email protected]> | 2025-01-29 07:55:56 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-29 12:27:10 -0600 |
| commit | 57fbbc62ede2e559cee7ce13983dc79aaeb55d9e (patch) | |
| tree | 3d18ea5bef30e3c1372864f063605205152c7b4c /debug.go | |
| parent | ce11f999f9282e9489e77eb1f9d6c08ae9c9b725 (diff) | |
better debugging output
Diffstat (limited to 'debug.go')
| -rw-r--r-- | debug.go | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -30,20 +30,22 @@ func (w *guiWidget) showWidgetPlacement(s string) { pId = w.node.Parent.WidgetId } s1 = fmt.Sprintf("(wId,pId)=(%2d,%2d) ", w.node.WidgetId, pId) + sizeW, sizeH := w.Size() + s1 += fmt.Sprintf("size=(%2d,%2d)", sizeW, sizeH) if w.Visible() { - sizeW, sizeH := w.Size() - 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 { - sizeW, sizeH := w.Size() - s1 += fmt.Sprintf("size=(%2d,%2d)", sizeW, sizeH) - s1 += fmt.Sprintf(" ") + s1 += fmt.Sprintf(" %2s %2s %2s %2s ", "", "", "", "") } if w.node.Parent != nil { if w.node.Parent.WidgetType == widget.Grid { s1 += fmt.Sprintf("At(%2d,%2d) ", w.node.State.AtW, w.node.State.AtH) + } else { + s1 += fmt.Sprintf(" %2s %2s ", "", "") } + } else { + s1 += fmt.Sprintf(" %2s %2s ", "", "") } tmp := "." + w.String() + ". " + w.cuiName if w.node.WidgetType == widget.Box { |
