зеркало из https://github.com/mozilla/gecko-dev.git
Bug 529125: [Regression] Controls are slightly pannable [r=mark.finkle]
This commit is contained in:
Родитель
188c6c98d0
Коммит
9480b15ef3
|
@ -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();
|
||||
]]>
|
||||
|
|
Загрузка…
Ссылка в новой задаче