Bump bubbles in examples and remove NewModel function in pager example

This commit is contained in:
Christian Rocha
2020-07-29 20:05:54 -04:00
parent 6d919a9213
commit a784aa32ca
4 changed files with 9 additions and 7 deletions

View File

@@ -106,7 +106,7 @@ func update(msg tea.Msg, mdl tea.Model) (tea.Model, tea.Cmd) {
// can initialize the viewport. The initial dimensions come in
// quickly, though asynchronously, which is why we wait for them
// here.
m.viewport = viewport.NewModel(msg.Width, msg.Height-verticalMargins)
m.viewport = viewport.Model{Width: msg.Width, Height: msg.Height - verticalMargins}
m.viewport.YPosition = headerHeight
m.viewport.HighPerformanceRendering = useHighPerformanceRenderer
m.viewport.SetContent(m.content)