diff --git a/table/table.go b/table/table.go index 3ecb94b6..f0064fc8 100644 --- a/table/table.go +++ b/table/table.go @@ -163,7 +163,7 @@ func WithRows(rows []Row) Option { // WithHeight sets the height of the table. func WithHeight(h int) Option { return func(m *Model) { - m.viewport.Height = h + m.viewport.Height = h - lipgloss.Height(m.headersView()) } } @@ -314,7 +314,7 @@ func (m *Model) SetWidth(w int) { // SetHeight sets the height of the viewport of the table. func (m *Model) SetHeight(h int) { - m.viewport.Height = h + m.viewport.Height = h - lipgloss.Height(m.headersView()) m.UpdateViewport() }