Skip to content

Commit

Permalink
fix: update bubbles window size on change
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Mar 3, 2022
1 parent 602b14c commit 66a64cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/tui/bubbles/git/bubble.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ func (b *Bubble) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case tea.WindowSizeMsg:
b.width = msg.Width
b.height = msg.Height
for i, bx := range b.boxes {
m, cmd := bx.Update(msg)
b.boxes[i] = m
if cmd != nil {
cmds = append(cmds, cmd)
}
}
case refs.RefMsg:
b.state = treeState
b.ref = msg
Expand Down

0 comments on commit 66a64cf

Please sign in to comment.