Author: nicfit Date: 2008-03-22 21:51:19 +0100 (Sat, 22 Mar 2008) New Revision: 9409
Modified: trunk/src/message_window.py Log: More sizing fixes. Along with [9408] closes #3713
Modified: trunk/src/message_window.py =================================================================== --- trunk/src/message_window.py 2008-03-22 18:19:56 UTC (rev 9408) +++ trunk/src/message_window.py 2008-03-22 20:51:19 UTC (rev 9409) @@ -800,7 +800,10 @@ gajim.config.get('msgwin-height')) if self.mode == self.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER: parent_size = win.window.get_size() - size = (parent_size[0] + size[0], size[1]) + # Need to add the size of the now visible paned handle, otherwise + # the saved width of the message window decreases by this amount + handle_size = win.parent_paned.style_get_property('handle-size') + size = (parent_size[0] + size[0] + handle_size, size[1]) elif self.mode == self.ONE_MSG_WINDOW_PERACCT: size = (gajim.config.get_per('accounts', acct, 'msgwin-width'), gajim.config.get_per('accounts', acct, 'msgwin-height')) @@ -813,6 +816,8 @@ else: return win.resize(size[0], size[1]) + if win.parent_paned: + win.parent_paned.set_position(parent_size[0])
def _position_window(self, win, acct, type): '''Moves window according to config settings'''