diff options
| author | Jeff Carr <[email protected]> | 2023-12-16 06:57:39 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-16 06:57:39 -0600 |
| commit | 87ab9a958d9eb9f4db35d5c9f9ce923df3132dad (patch) | |
| tree | fd3ee29d828e9e69175a6ca04fec6ae0fe60fcc0 /toolkit/gocui/tab.go | |
| parent | dcce32583387be7fc4f6cd8c8dea62fd7dc42ecf (diff) | |
correct line hight
dump non-working size rectangle code
somehow works better
better dropdown menu debugging
minor fixes to common.go
more common code
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/tab.go')
| -rw-r--r-- | toolkit/gocui/tab.go | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/toolkit/gocui/tab.go b/toolkit/gocui/tab.go index 3451e5c..90c2d1a 100644 --- a/toolkit/gocui/tab.go +++ b/toolkit/gocui/tab.go @@ -36,17 +36,13 @@ func (n *node) gocuiSetWH(sizeW, sizeH int) { } if tk.frame { - tk.size.w0 = sizeW - tk.size.h0 = sizeH - tk.gocuiSize.w0 = tk.size.w0 - tk.gocuiSize.h0 = tk.size.h0 + tk.gocuiSize.w0 = sizeW + tk.gocuiSize.h0 = sizeH tk.gocuiSize.w1 = tk.gocuiSize.w0 + w + me.FramePadW tk.gocuiSize.h1 = tk.gocuiSize.h0 + h + me.FramePadH } else { - tk.size.w0 = sizeW - 1 - tk.size.h0 = sizeH - 1 - tk.gocuiSize.w0 = tk.size.w0 - tk.gocuiSize.h0 = tk.size.h0 + tk.gocuiSize.w0 = sizeW - 1 + tk.gocuiSize.h0 = sizeH - 1 tk.gocuiSize.w1 = tk.gocuiSize.w0 + w + 1 tk.gocuiSize.h1 = tk.gocuiSize.h0 + h + 1 } @@ -73,8 +69,6 @@ func redoWindows(nextW int, nextH int) { n.hasTabs = false } - w.size.w0 = nextW - w.size.h0 = nextH n.gocuiSetWH(nextW, nextH) n.deleteView() n.showView() @@ -98,8 +92,6 @@ func (p *node) redoTabs(nextW int, nextH int) { w := n.tk w.frame = true - w.size.w0 = nextW - w.size.h0 = nextH n.gocuiSetWH(nextW, nextH) n.deleteView() // setCurrentTab(n) |
