From 6debaa6c3f90275e1ebb641360da6fe367126ec5 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 20 Sep 2011 21:21:26 +0200 Subject: Do not limit the size of the windows, fixes #2246 --- src/tabs.py | 8 +------- src/windows.py | 5 +---- 2 files changed, 2 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/tabs.py b/src/tabs.py index 3a93f541..69a6ac96 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -13,9 +13,6 @@ Each Tab object has different refresh() and resize() methods, defining how its Windows are displayed, resized, etc """ -MIN_WIDTH = 50 -MIN_HEIGHT = 22 - import logging log = logging.getLogger(__name__) @@ -89,10 +86,7 @@ class Tab(object): @staticmethod def resize(scr): Tab.size = (Tab.height, Tab.width) = scr.getmaxyx() - if Tab.height < MIN_HEIGHT or Tab.width < MIN_WIDTH: - Tab.visible = False - else: - Tab.visible = True + Tab.visible = True def complete_commands(self, the_input): """ diff --git a/src/windows.py b/src/windows.py index ef11107a..3e607541 100644 --- a/src/windows.py +++ b/src/windows.py @@ -30,9 +30,6 @@ from contact import Contact, Resource from roster import RosterGroup, roster from poopt import cut_text -# from message import Line -from tabs import MIN_WIDTH, MIN_HEIGHT - from sleekxmpp.xmlstream.stanzabase import JID import core @@ -69,8 +66,8 @@ class Win(object): if not self._win: self._win = curses.newwin(height, width, y, x) else: - self._win.resize(height, width) try: + self._win.resize(height, width) self._win.mvwin(y, x) except: log.debug('DEBUG: mvwin returned ERR. Please investigate') -- cgit v1.2.3