summaryrefslogtreecommitdiff
path: root/src/data_forms.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-12-29 18:55:43 +0100
committermathieui <mathieui@mathieui.net>2011-12-29 18:55:43 +0100
commit62c4f67ea53c6b1c7f4092349f4c746e5bdb14f1 (patch)
treecc58a514351ebfc818f923bbc162adeb2e9ce7de /src/data_forms.py
parent3c4b2e9683180f244799caf661d10bb7d9213faf (diff)
downloadpoezio-62c4f67ea53c6b1c7f4092349f4c746e5bdb14f1.tar.gz
poezio-62c4f67ea53c6b1c7f4092349f4c746e5bdb14f1.tar.bz2
poezio-62c4f67ea53c6b1c7f4092349f4c746e5bdb14f1.tar.xz
poezio-62c4f67ea53c6b1c7f4092349f4c746e5bdb14f1.zip
Fix the resize issues with the /configure tab
Diffstat (limited to 'src/data_forms.py')
-rw-r--r--src/data_forms.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/data_forms.py b/src/data_forms.py
index d4a8697a..d38f392a 100644
--- a/src/data_forms.py
+++ b/src/data_forms.py
@@ -67,13 +67,14 @@ class DataFormsTab(Tab):
def resize(self):
self.need_resize = False
self.topic_win.resize(1, self.width, 0, 0)
- self.tab_win.resize(1, self.width, self.height-2, 0)
- self.form_win.resize(self.height-4, self.width, 1, 0)
+ self.form_win.resize(self.height-3 - Tab.tab_win_height(), self.width, 1, 0)
self.help_win.resize(1, self.width, self.height-1, 0)
- self.help_win_dyn.resize(1, self.width, self.height-3, 0)
+ self.help_win_dyn.resize(1, self.width, self.height-2 - Tab.tab_win_height(), 0)
self.lines = []
def refresh(self):
+ if self.need_resize:
+ self.resize()
self.topic_win.refresh(self._form['title'])
self.refresh_tab_win()
self.help_win.refresh()
@@ -453,7 +454,6 @@ class FormWin(object):
'input':inp})
def resize(self, height, width, y, x):
- self._win.resize(height, width)
self.height = height
self.width = width
if self.current_input >= self.height-2: