mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 529125: [Regression] Controls are slightly pannable [r=mark.finkle]
This commit is contained in:
parent
76900d03d3
commit
7ee17c88c6
@ -116,12 +116,12 @@
|
||||
<method name="resize">
|
||||
<body>
|
||||
<![CDATA[
|
||||
let container = document.getElementById("tabs-container").getBoundingClientRect();
|
||||
let el = this.getBoundingClientRect();
|
||||
let container = this.parentNode.getBoundingClientRect();
|
||||
let element = 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";
|
||||
let height = (element.top - container.top) +
|
||||
((container.top + container.height) - (element.top + element.height));
|
||||
this.style.height = height + "px";
|
||||
|
||||
this._updateWidth();
|
||||
]]>
|
||||
|
Loading…
Reference in New Issue
Block a user