diff browser_side/panels.py @ 185:40adfd4ee4d7

browser side: fixed MainTabPanel size
author Goffi <goffi@goffi.org>
date Sun, 03 Mar 2013 03:13:00 +0100
parents 97d5e9de1106
children 72bb1d845b6a
line wrap: on
line diff
--- a/browser_side/panels.py	Sun Mar 03 03:04:04 2013 +0100
+++ b/browser_side/panels.py	Sun Mar 03 03:13:00 2013 +0100
@@ -1026,7 +1026,7 @@
         else:
             tab_bar_h = _elts.item(0).offsetHeight
         ideal_height = Window.getClientHeight() - DOM.getAbsoluteTop(tab_panel_elt) - tab_bar_h - 5
-        ideal_width = width - self.host.contact_panel.getElement().offsetWidth - 5
+        ideal_width = width - DOM.getAbsoluteLeft(tab_panel_elt) - 5
         self.setWidth("%s%s" % (ideal_width, "px"));
         self.setHeight("%s%s" % (ideal_height, "px"));