Resize tabbar properly

Ref #1467
This commit is contained in:
Zachary Yedidia
2020-01-26 00:44:34 -05:00
parent 3252324d24
commit 866b3c9238
2 changed files with 5 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ func (t *TabList) Resize() {
t.List[0].Node.Resize(w, h-iOffset)
t.List[0].Resize()
}
t.TabWindow.Resize(w, h)
}
// HandleEvent checks for a resize event or a mouse event on the tab bar

View File

@@ -25,6 +25,10 @@ func NewTabWindow(w int, y int) *TabWindow {
return tw
}
func (w *TabWindow) Resize(width, height int) {
w.width = width
}
func (w *TabWindow) LocFromVisual(vloc buffer.Loc) int {
x := -w.hscroll