зеркало из https://github.com/mozilla/gecko-dev.git
Bug 515737: on latest trunk build, side bars extend past bottom of maemo screen, mfinkle
This commit is contained in:
Родитель
446a1f64a8
Коммит
bb6990b3a8
|
@ -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();
|
||||
]]>
|
||||
|
|
Загрузка…
Ссылка в новой задаче