diff options
| author | Jeff Carr <[email protected]> | 2024-01-17 23:39:03 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-17 23:39:03 -0600 |
| commit | a0baba0821441d9cf38f0b33fe12fb96925c6236 (patch) | |
| tree | 2aece2a890c66c36b08524e117753817078ee58c /gocui/add.go | |
| parent | bee272651ad38453aef27f098513f7be652c39bf (diff) | |
new paths
Signed-off-by: Jeff Carr <[email protected]>
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()") |
