Skip to content

Commit

Permalink
Menu no longer fills the available vertical space
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Aug 19, 2021
1 parent aa7323e commit 3eb15e4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tui/bubble.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,7 @@ func (b *Bubble) viewForBox(i int) string {
} else {
s = menuStyle
}
h := b.height -
lipgloss.Height(b.headerView()) -
lipgloss.Height(b.footerView()) -
s.GetVerticalFrameSize() -
appBoxStyle.GetVerticalFrameSize() +
1 // TODO: figure out why we need this
return s.Copy().Height(h).Render(box.View())
return s.Render(box.View())
case *repo.Bubble:
box.Active = isActive
return box.View()
Expand Down

0 comments on commit 3eb15e4

Please sign in to comment.