Bug 515737: on latest trunk build, side bars extend past bottom of maemo screen, mfinkle

This commit is contained in:
Vivien Nicolas 2009-09-18 10:03:39 -04:00
parent 85b480e989
commit 1775544841

View File

@ -115,10 +115,12 @@
<method name="resize">
<body>
<![CDATA[
if (this._verticalOccupation == undefined) {
this._verticalOccupation = this.getBoundingClientRect().height / window.innerHeight;
}
this.style.height = (window.innerHeight * this._verticalOccupation) + "px";
let container = document.getElementById("tabs-container").getBoundingClientRect();
let el = this.getBoundingClientRect();
let height = container.top + (el.top - container.top)
+ ((container.top + container.height) - (el.top + el.height));
this.style.height = (window.innerHeight - height) + "px";
this._updateWidth();
]]>