diff src/browser/sat_browser/chat.py @ 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 f8a7a046ff9c
children 2491898b3041
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):