mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 515737: on latest trunk build, side bars extend past bottom of maemo screen, mfinkle
This commit is contained in:
parent
85b480e989
commit
1775544841
@ -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();
|
||||||
]]>
|
]]>
|
||||||
|
Loading…
Reference in New Issue
Block a user