diff options
Diffstat (limited to 'gocui/add.go')
| -rw-r--r-- | gocui/add.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gocui/add.go b/gocui/add.go index e76b2ee..151d4d2 100644 --- a/gocui/add.go +++ b/gocui/add.go @@ -1,12 +1,13 @@ package main import ( + "go.wit.com/lib/widget" log "go.wit.com/log" - "go.wit.com/gui/widget" ) var fakeStartWidth int = me.FakeW var fakeStartHeight int = me.TabH + me.FramePadH + // setup fake labels for non-visible things off screen func (n *node) setFake() { w := n.tk @@ -16,11 +17,11 @@ func (n *node) setFake() { fakeStartHeight += w.gocuiSize.Height() // TODO: use the actual max hight of the terminal window - if (fakeStartHeight > 24) { + if fakeStartHeight > 24 { fakeStartHeight = me.TabH fakeStartWidth += me.FakeW } - if (true) { + if true { n.showView() } } @@ -70,9 +71,9 @@ func (n *node) addWidget() { return default: /* - if n.IsCurrent() { - n.updateCurrent() - } + if n.IsCurrent() { + n.updateCurrent() + } */ } n.showWidgetPlacement(true, "addWidget()") |
