feat!(viewport): width and height are now optional args in New()

This commit is contained in:
Christian Rocha
2024-10-31 15:02:05 -04:00
parent 241db06b4a
commit 3b879e7694
3 changed files with 28 additions and 5 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ type Option func(*Model)
func New(opts ...Option) Model {
m := Model{
cursor: 0,
viewport: viewport.New(0, 20), //nolint:mnd
viewport: viewport.New(viewport.WithHeight(20)), //nolint:mnd
KeyMap: DefaultKeyMap(),
Help: help.New(),