summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-06 19:00:00 -0600
committerJeff Carr <[email protected]>2025-02-06 19:00:00 -0600
commit2a5734892a85804b6c44a0cd8dd22d20fed21d96 (patch)
tree55e4164094dd468a8ef1812ed1cae5e7a605fc01 /debug.go
parentf5d465901d2ec48e145c3c7ce04eceb69445a11f (diff)
trying to fix Hidden() to use the parent
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/debug.go b/debug.go
index f2b2f81..3c83280 100644
--- a/debug.go
+++ b/debug.go
@@ -57,7 +57,11 @@ func (tk *guiWidget) dumpWidget(s string) {
}
s1 = fmt.Sprintf("(wId,pId)=(%4d,%4d) ", tk.node.WidgetId, pId)
sizeW, sizeH := tk.Size()
- s1 += fmt.Sprintf("size=(%3d,%3d)", sizeW, sizeH)
+ hide := "S"
+ if tk.Hidden() {
+ hide = "H"
+ }
+ s1 += fmt.Sprintf("size=(%3d,%3d)%s)", sizeW, sizeH, hide)
if tk.Visible() {
s1 += fmt.Sprintf("gocui=(%3d,%3d,%3d,%3d)",
tk.gocuiSize.w0, tk.gocuiSize.h0, tk.gocuiSize.w1, tk.gocuiSize.h1)