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"> <method name="resize">
<body> <body>
<![CDATA[ <![CDATA[
if (this._verticalOccupation == undefined) { let container = document.getElementById("tabs-container").getBoundingClientRect();
this._verticalOccupation = this.getBoundingClientRect().height / window.innerHeight; let el = this.getBoundingClientRect();
}
this.style.height = (window.innerHeight * this._verticalOccupation) + "px"; 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(); this._updateWidth();
]]> ]]>