summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
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 ", "", "")