зеркало из 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">
|
<method name="resize">
|
||||||
<body>
|
<body>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
let container = document.getElementById("tabs-container").getBoundingClientRect();
|
let container = this.parentNode.getBoundingClientRect();
|
||||||
let el = this.getBoundingClientRect();
|
let element = this.getBoundingClientRect();
|
||||||
|
|
||||||
let height = container.top + (el.top - container.top)
|
let height = (element.top - container.top) +
|
||||||
+ ((container.top + container.height) - (el.top + el.height));
|
((container.top + container.height) - (element.top + element.height));
|
||||||
this.style.height = (window.innerHeight - height) + "px";
|
this.style.height = height + "px";
|
||||||
|
|
||||||
this._updateWidth();
|
this._updateWidth();
|
||||||
]]>
|
]]>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче