Skip to content

Commit

Permalink
fix: remove GetVerticalFrameSize at all
Browse files Browse the repository at this point in the history
  • Loading branch information
prgres committed Nov 13, 2023
1 parent 26a544f commit d21a343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func (m *Model) SetWidth(w int) {
// SetHeight sets the height of the viewport of the table.
func (m *Model) SetHeight(h int) {
headerHeight := lipgloss.Height(m.headersView()) // Since headers are truncated, it is always 1
m.viewport.Height = h - headerHeight - m.styles.Header.GetVerticalFrameSize()
m.viewport.Height = h - headerHeight
m.UpdateViewport()
}

Expand Down

0 comments on commit d21a343

Please sign in to comment.