comparison 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
comparison
equal deleted inserted replaced
832:ded96b54ee02 833:4db064a70fc7
122 self.message_box.onSelectedChange(self) 122 self.message_box.onSelectedChange(self)
123 self.message_box.addKeyboardListener(self) 123 self.message_box.addKeyboardListener(self)
124 self.vpanel.add(self.message_box) 124 self.vpanel.add(self.message_box)
125 125
126 def onWindowResized(self, width=None, height=None): 126 def onWindowResized(self, width=None, height=None):
127 ideal_height = self.content_scroll.getOffsetHeight() 127 if self.type == C.CHAT_GROUP:
128 self.occupants_panel.setHeight("%s%s" % (ideal_height, "px")) 128 ideal_height = self.content_scroll.getOffsetHeight()
129 self.occupants_panel.setHeight("%s%s" % (ideal_height, "px"))
129 130
130 @property 131 @property
131 def target(self): 132 def target(self):
132 # FIXME: for unknow reason, pyjamas doesn't use the method inherited from QuickChat 133 # FIXME: for unknow reason, pyjamas doesn't use the method inherited from QuickChat
133 # FIXME: must remove this when either pyjamas is fixed, or we use an alternative 134 # FIXME: must remove this when either pyjamas is fixed, or we use an alternative