Don't get/set size in viewport; that should happen in the parent

This commit is contained in:
Christian Rocha
2020-06-18 14:14:21 -04:00
parent 5572542e2e
commit 09ae5da7c3

View File

@@ -256,12 +256,6 @@ func Update(msg tea.Msg, m Model) (Model, tea.Cmd) {
var cmd tea.Cmd
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:
switch msg.String() {