diff options
Diffstat (limited to 'src/tabs')
-rw-r--r-- | src/tabs/basetabs.py | 7 | ||||
-rw-r--r-- | src/tabs/conversationtab.py | 2 | ||||
-rw-r--r-- | src/tabs/muctab.py | 17 |
3 files changed, 14 insertions, 12 deletions
diff --git a/src/tabs/basetabs.py b/src/tabs/basetabs.py index 77086ec6..ed40ce4a 100644 --- a/src/tabs/basetabs.py +++ b/src/tabs/basetabs.py @@ -187,7 +187,7 @@ class Tab(object): def resize(scr): with g_lock: Tab.height, Tab.width = scr.getmaxyx() - windows.Win._tab_win = scr + windows.Win._tab_win = scr def register_command(self, name, func, *, desc='', shortdesc='', completion=None, usage=''): """ @@ -283,8 +283,9 @@ class Tab(object): return False def refresh_tab_win(self): - if self.left_tab_win and not self.size.core_degrade_x: - self.left_tab_win.refresh() + if config.get('enable_vertical_tab_list', False): + if self.left_tab_win and not self.size.core_degrade_x: + self.left_tab_win.refresh() elif not self.size.core_degrade_y: self.tab_win.refresh() diff --git a/src/tabs/conversationtab.py b/src/tabs/conversationtab.py index d37ba4b7..756634ce 100644 --- a/src/tabs/conversationtab.py +++ b/src/tabs/conversationtab.py @@ -279,7 +279,7 @@ class ConversationTab(ChatTab): if display_bar: self.upper_bar.resize(1, self.width, 0, 0) self.info_header.resize(1, self.width, - self.height - 2 - bar_height - info_win_height + self.height - 2 - info_win_height - tab_win_height, 0) self.input.resize(1, self.width, self.height - 1, 0) diff --git a/src/tabs/muctab.py b/src/tabs/muctab.py index 2886a41e..500ea541 100644 --- a/src/tabs/muctab.py +++ b/src/tabs/muctab.py @@ -814,14 +814,13 @@ class MucTab(ChatTab): info_win_height = self.core.information_win_size - if display_user_list: - self.user_win.resize(self.height - 3 - info_win_height - - tab_win_height, - self.width - (self.width // 10) * 9 - 1, - 1, - (self.width // 10) * 9 + 1) - self.v_separator.resize(self.height - 2 - tab_win_height, - 1, 1, 9 * (self.width // 10)) + self.user_win.resize(self.height - 3 - info_win_height + - tab_win_height, + self.width - (self.width // 10) * 9 - 1, + 1, + (self.width // 10) * 9 + 1) + self.v_separator.resize(self.height - 3 - info_win_height - tab_win_height, + 1, 1, 9 * (self.width // 10)) self.topic_win.resize(1, self.width, 0, 0) @@ -949,6 +948,8 @@ class MucTab(ChatTab): self.width - (self.width // 10) * 9 - 1, 1, (self.width // 10) * 9 + 1) + self.v_separator.resize(self.height - 3 - self.core.information_win_size - Tab.tab_win_height(), + 1, 1, 9 * (self.width // 10)) self.text_win.resize(self.height - 3 - self.core.information_win_size - Tab.tab_win_height(), text_width, 1, 0) |