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">
|
||||
<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();
|
||||
]]>
|
||||
|
Loading…
Reference in New Issue
Block a user