summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/debug.go b/debug.go
index 2b740d4..9dff348 100644
--- a/debug.go
+++ b/debug.go
@@ -39,8 +39,13 @@ func (w *guiWidget) dumpWidget(s string) {
if w.Visible() {
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)
+ s1 += fmt.Sprintf(" real=(%3d,%3d,%3d,%3d)",
+ vx0, vy0, vx1, vy1)
} else {
s1 += fmt.Sprintf(" %3s %3s %3s %3s ", "", "", "", "")
+ s1 += fmt.Sprintf(" %3s %3s %3s %3s ", "", "", "", "")
}
if w.node.Parent != nil {
if w.node.Parent.WidgetType == widget.Grid {