mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
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:
parent
9338919da1
commit
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user