More sizing fixes. Along with [9408] closes #3713
This commit is contained in:
parent
00fe194744
commit
8db2a68632
1 changed files with 6 additions and 1 deletions
|
@ -800,7 +800,10 @@ class MessageWindowMgr(gobject.GObject):
|
||||||
gajim.config.get('msgwin-height'))
|
gajim.config.get('msgwin-height'))
|
||||||
if self.mode == self.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER:
|
if self.mode == self.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER:
|
||||||
parent_size = win.window.get_size()
|
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:
|
elif self.mode == self.ONE_MSG_WINDOW_PERACCT:
|
||||||
size = (gajim.config.get_per('accounts', acct, 'msgwin-width'),
|
size = (gajim.config.get_per('accounts', acct, 'msgwin-width'),
|
||||||
gajim.config.get_per('accounts', acct, 'msgwin-height'))
|
gajim.config.get_per('accounts', acct, 'msgwin-height'))
|
||||||
|
@ -813,6 +816,8 @@ class MessageWindowMgr(gobject.GObject):
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
win.resize(size[0], size[1])
|
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):
|
def _position_window(self, win, acct, type):
|
||||||
'''Moves window according to config settings'''
|
'''Moves window according to config settings'''
|
||||||
|
|
Loading…
Add table
Reference in a new issue