From 9c8d577737cf523adce0306207dbb8a33b8aa63e Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 5 May 2014 19:57:20 +0200 Subject: Revert "Fix #2072 (only resize a tab if the size changed since the last display)" This reverts commit b46f0f5e266c321632738ca40839759486b47a7e. Conflicts: src/tabs/muclisttab.py Doing this made the unresized elements refresh in the old subwins, causing glitches and weirdness. And anyway, the only problematic element is the TextWin (rebuilding all the lines of a buffer is expensive), but it already checks if the width changed. --- src/tabs/data_forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tabs/data_forms.py') diff --git a/src/tabs/data_forms.py b/src/tabs/data_forms.py index bdefbfde..776e476d 100644 --- a/src/tabs/data_forms.py +++ b/src/tabs/data_forms.py @@ -57,6 +57,7 @@ class DataFormsTab(Tab): self.form_win.on_input(key) def resize(self): + self.need_resize = False self.topic_win.resize(1, self.width, 0, 0) self.form_win.resize(self.height - 3 - Tab.tab_win_height(), self.width, 1, 0) @@ -64,7 +65,6 @@ class DataFormsTab(Tab): self.help_win_dyn.resize(1, self.width, self.height - 2 - Tab.tab_win_height(), 0) self.lines = [] - self.push_size() def refresh(self): if self.need_resize: -- cgit v1.2.3