mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-11 18:10:58 +00:00
parent
3252324d24
commit
866b3c9238
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue