From 3b258d0ce0e20ffedf8804409a16abbe84f1d383 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 11 Jan 2024 19:10:24 -0600 Subject: var value any Signed-off-by: Jeff Carr --- gocui/tab.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gocui/tab.go') diff --git a/gocui/tab.go b/gocui/tab.go index f3a6ef2..14f6203 100644 --- a/gocui/tab.go +++ b/gocui/tab.go @@ -24,8 +24,8 @@ func (w *guiWidget) Height() int { } func (n *node) gocuiSetWH(sizeW, sizeH int) { - w := len(n.Text) - lines := strings.Split(n.Text, "\n") + w := len(widget.GetString(n.value)) + lines := strings.Split(widget.GetString(n.value), "\n") h := len(lines) tk := n.tk @@ -78,7 +78,7 @@ func redoWindows(nextW int, nextH int) { sizeW := w.Width() + me.WindowPadW sizeH := w.Height() nextW += sizeW - log.Log(NOW, "redoWindows() start nextW,H =", nextW, nextH, "gocuiSize.W,H =", sizeW, sizeH, n.Name) + log.Log(NOW, "redoWindows() start nextW,H =", nextW, nextH, "gocuiSize.W,H =", sizeW, sizeH, n.progname) if n.hasTabs { n.redoTabs(me.TabW, me.TabH) @@ -105,7 +105,7 @@ func (p *node) redoTabs(nextW int, nextH int) { sizeW := w.Width() + me.TabPadW sizeH := w.Height() - log.Log(NOW, "redoTabs() start nextW,H =", nextW, nextH, "gocuiSize.W,H =", sizeW, sizeH, n.Name) + log.Log(NOW, "redoTabs() start nextW,H =", nextW, nextH, "gocuiSize.W,H =", sizeW, sizeH, n.progname) nextW += sizeW } } -- cgit v1.2.3