зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1438814 - Use pre-increment operator for height changes. r=birtles
With post increment operator, the first callback doesn't change height at all. Differential Revision: https://phabricator.services.mozilla.com/D4182
This commit is contained in:
Родитель
9338919da1
Коммит
35b5dfd828
|
@ -36,10 +36,10 @@
|
|||
var frameTest = document.getElementById('frameTest');
|
||||
|
||||
// let's resize the iframe vertically only, showing that the vh sizes is not updated.
|
||||
if (height <= 300) {
|
||||
if (height < 300) {
|
||||
|
||||
//frameTest.style.width = height++ + "px";
|
||||
frameTest.style.height = height++ + "px";
|
||||
frameTest.style.height = ++height + "px";
|
||||
|
||||
setTimeout(resizeReference, 10);
|
||||
|
||||
|
|
|
@ -39,10 +39,10 @@
|
|||
var frameTest = document.getElementById('frameTest');
|
||||
|
||||
// let's resize the iframe vertically only, showing that the vh sizes is not updated.
|
||||
if (height <= 300) {
|
||||
if (height < 300) {
|
||||
|
||||
//frameTest.style.width = height++ + "px";
|
||||
frameTest.style.height = height++ + "px";
|
||||
frameTest.style.height = ++height + "px";
|
||||
|
||||
setTimeout(resizeReference, 10);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче