changeset 833:4db064a70fc7

browser (chat): fixes resize callback for one2one conversation
author souliane <souliane@mailoo.org>
date Tue, 12 Jan 2016 16:55:43 +0100
parents ded96b54ee02
children 2491898b3041
files src/browser/sat_browser/chat.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/sat_browser/chat.py	Sat Jan 09 13:44:48 2016 +0100
+++ b/src/browser/sat_browser/chat.py	Tue Jan 12 16:55:43 2016 +0100
@@ -124,8 +124,9 @@
         self.vpanel.add(self.message_box)
 
     def onWindowResized(self, width=None, height=None):
-        ideal_height = self.content_scroll.getOffsetHeight()
-        self.occupants_panel.setHeight("%s%s" % (ideal_height, "px"))
+        if self.type == C.CHAT_GROUP:
+            ideal_height = self.content_scroll.getOffsetHeight()
+            self.occupants_panel.setHeight("%s%s" % (ideal_height, "px"))
 
     @property
     def target(self):