diff options
Diffstat (limited to 'gocui/tab.go')
| -rw-r--r-- | gocui/tab.go | 8 |
1 files changed, 4 insertions, 4 deletions
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 } } |
