diff src/browser/sat_browser/contact_list.py @ 779:fc941d0d97f8

browser_side: fixed ContactsPanel scrolling
author souliane <souliane@mailoo.org>
date Mon, 30 Nov 2015 21:52:41 +0100
parents dd70db1c48dc
children b2a75a103aac
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_list.py	Mon Nov 30 16:26:31 2015 +0100
+++ b/src/browser/sat_browser/contact_list.py	Mon Nov 30 21:52:41 2015 +0100
@@ -123,6 +123,7 @@
         SimplePanel.__init__(self)
         self.host = host
         self.scroll_panel = ScrollPanel()
+        self.scroll_panel.addStyleName("gwt-ScrollPanel")  # XXX: no class is set by Pyjamas
         self.vPanel = VerticalPanel()
         _title = ContactTitleLabel(host, 'Contacts')
         DOM.setStyleAttribute(_title.getElement(), "cursor", "pointer")
@@ -132,7 +133,6 @@
             self.removeAlerts(contact_jid, True)
 
         self._contacts_panel = contact_panel.ContactsPanel(host, contacts_click=on_click, contacts_menus=(C.MENU_JID_CONTEXT, C.MENU_ROSTER_JID_CONTEXT))
-        self._contacts_panel.setStyleName('contactPanel') # FIXME: style doesn't exists !
         self._group_panel = GroupPanel(self)
 
         self.vPanel.add(_title)