mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-15 01:01:23 -07:00
Bump bubbles in examples and remove NewModel function in pager example
This commit is contained in:
@@ -12,3 +12,5 @@ require (
|
||||
github.com/muesli/termenv v0.7.0
|
||||
golang.org/x/sys v0.0.0-20200728102440-3e129f6d46b1 // indirect
|
||||
)
|
||||
|
||||
replace github.com/charmbracelet/bubbles => ../../bubbles
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user