comparison src/browser/sat_browser/menu.py @ 492:a7f5448a1bc3

browser_side: fixes the CSS for the menus
author souliane <souliane@mailoo.org>
date Mon, 14 Jul 2014 13:06:24 +0200
parents 97c72fe4a5f2
children 5d8632a7bfde
comparison
equal deleted inserted replaced
491:c97fe4059f71 492:a7f5448a1bc3
62 62
63 class LiberviaMenuBar(MenuBar): 63 class LiberviaMenuBar(MenuBar):
64 64
65 def __init__(self): 65 def __init__(self):
66 MenuBar.__init__(self, vertical=False) 66 MenuBar.__init__(self, vertical=False)
67 self.setStyleName('gwt-MenuBar-horizontal') # XXX: workaround for the Pyjamas' class name fix (it's now "gwt-MenuBar gwt-MenuBar-horizontal")
68 # TODO: properly adapt CSS to the new class name
69 67
70 def doItemAction(self, item, fireCommand): 68 def doItemAction(self, item, fireCommand):
71 MenuBar.doItemAction(self, item, fireCommand) 69 MenuBar.doItemAction(self, item, fireCommand)
72 if item == self.items[-1] and self.popup: 70 if item == self.items[-1] and self.popup:
73 self.popup.setPopupPosition(Window.getClientWidth() - 71 self.popup.setPopupPosition(Window.getClientWidth() -