summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/debug.go b/debug.go
index 9dff348..f18fdc5 100644
--- a/debug.go
+++ b/debug.go
@@ -27,6 +27,7 @@ func (w *guiWidget) dumpTree(s string) {
func (w *guiWidget) dumpWidget(s string) {
var s1 string
var pId int
+ w.verifyRect()
if w.node.Parent == nil {
log.Log(INFO, "showWidgetPlacement() parent == nil", w.node.WidgetId, w.cuiName)
pId = 0
@@ -40,7 +41,7 @@ func (w *guiWidget) dumpWidget(s string) {
s1 += fmt.Sprintf("gocui=(%3d,%3d,%3d,%3d)",
w.gocuiSize.w0, w.gocuiSize.h0, w.gocuiSize.w1, w.gocuiSize.h1)
// vx0, vy0, vx1, vy1, _ := me.baseGui.ViewPosition("msg")
- vx0, vy0, vx1, vy1, _ := me.baseGui.ViewPosition(w.cuiName)
+ vx0, vy0, vx1, vy1, _ := me.baseGui.ViewPosition(w.v.Name())
s1 += fmt.Sprintf(" real=(%3d,%3d,%3d,%3d)",
vx0, vy0, vx1, vy1)
} else {