Skip to content

Commit

Permalink
Correct repo viewport height
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Aug 19, 2021
1 parent c4118e2 commit 62b97cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tui/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ func (b *Bubble) setupCmd() tea.Msg {
}
width := b.width
boxLeftWidth := menuStyle.GetWidth() + menuStyle.GetHorizontalFrameSize()
const heightMargin = 12 // TODO: figure out why this needs to be 12
// TODO: also send this along with a tea.WindowSizeMsg
var heightMargin = lipgloss.Height(b.headerView()) +
lipgloss.Height(b.footerView()) +
contentBoxStyle.GetVerticalFrameSize()
rb := repo.NewBubble(b.repoSource, me.Repo, width, boxLeftWidth, b.height, heightMargin, tmplConfig)
initCmd := rb.Init()
msg := initCmd()
Expand Down

0 comments on commit 62b97cb

Please sign in to comment.