From 09ae5da7c30357f096ef57c7871608e0fc76e464 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Thu, 18 Jun 2020 14:14:21 -0400 Subject: [PATCH] Don't get/set size in viewport; that should happen in the parent --- viewport/viewport.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/viewport/viewport.go b/viewport/viewport.go index 4984db2..af2cc5a 100644 --- a/viewport/viewport.go +++ b/viewport/viewport.go @@ -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() {