diff --git a/table/table.go b/table/table.go index 36549e3b..63cd18cb 100644 --- a/table/table.go +++ b/table/table.go @@ -150,7 +150,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()) } } @@ -296,7 +296,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() }