mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-03-14 04:53:43 +03:00
Don't get/set size in viewport; that should happen in the parent
This commit is contained in:
parent
5572542e2e
commit
09ae5da7c3
@ -256,12 +256,6 @@ func Update(msg tea.Msg, m Model) (Model, tea.Cmd) {
|
|||||||
var cmd tea.Cmd
|
var cmd tea.Cmd
|
||||||
|
|
||||||
switch msg := msg.(type) {
|
switch msg := msg.(type) {
|
||||||
case tea.WindowSizeMsg:
|
|
||||||
m.Width = msg.Width
|
|
||||||
m.Height = msg.Height
|
|
||||||
//if m.HighPerformanceRendering {
|
|
||||||
//cmd = tea.ReplaceIgnoredLines(m.YPosition, m.YPosition+m.Height)
|
|
||||||
//}
|
|
||||||
|
|
||||||
case tea.KeyMsg:
|
case tea.KeyMsg:
|
||||||
switch msg.String() {
|
switch msg.String() {
|
||||||
|
Loading…
Reference in New Issue
Block a user