Fix view flickering during window resizes.

Closes #1126
This commit is contained in:
Jürg Lehni 2016-08-01 17:10:00 +02:00
parent 78c5c27bb3
commit fa3456341c

View file

@ -395,8 +395,11 @@ var View = Base.extend(Emitter, /** @lends View# */{
delta: delta
});
this._changed();
if (this._autoUpdate)
this.requestUpdate();
if (this._autoUpdate) {
// Update right away, don't wait for the next animation frame as
// otherwise the view would flicker during resizes, see #1126
this.update();
}
},
/**