summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-03 09:39:15 -0600
committerJeff Carr <[email protected]>2025-02-03 09:39:15 -0600
commitc91733e10da21b5774a0663122cb1428103f1a80 (patch)
tree419107b8ee728ece1f6249c7d0a41a071249ff50 /debug.go
parent6370d87fc238480ee8b8e9476660ea64397088b1 (diff)
both widgets drag
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 {