Bug 529125: [Regression] Controls are slightly pannable [r=mark.finkle]

This commit is contained in:
Vivien Nicolas 2009-11-17 09:23:56 -05:00
Родитель 188c6c98d0
Коммит 9480b15ef3
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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();
]]> ]]>