Mercurial > libervia-web
diff browser_side/panels.py @ 187:d0503f8f15ef
browser side: scroller added to contacts panel
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 03 Mar 2013 17:37:43 +0100 |
parents | 72bb1d845b6a |
children | 39936b83da9d |
line wrap: on
line diff
--- a/browser_side/panels.py Sun Mar 03 04:27:39 2013 +0100 +++ b/browser_side/panels.py Sun Mar 03 17:37:43 2013 +0100 @@ -1036,7 +1036,7 @@ tab_bar_h = 0 else: tab_bar_h = _elts.item(0).offsetHeight - ideal_height = Window.getClientHeight() - DOM.getAbsoluteTop(tab_panel_elt) - tab_bar_h - 5 + ideal_height = height - DOM.getAbsoluteTop(tab_panel_elt) - tab_bar_h - 5 ideal_width = width - DOM.getAbsoluteLeft(tab_panel_elt) - 5 self.setWidth("%s%s" % (ideal_width, "px")); self.setHeight("%s%s" % (ideal_height, "px"));