mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
parent
fa3456341c
commit
91371c1b47
1 changed files with 2 additions and 2 deletions
|
@ -389,12 +389,12 @@ var View = Base.extend(Emitter, /** @lends View# */{
|
||||||
return;
|
return;
|
||||||
this._setElementSize(width, height);
|
this._setElementSize(width, height);
|
||||||
this._viewSize._set(width, height);
|
this._viewSize._set(width, height);
|
||||||
// Call onResize handler on any size change
|
this._changed();
|
||||||
|
// Emit resize event on any size changes.
|
||||||
this.emit('resize', {
|
this.emit('resize', {
|
||||||
size: size,
|
size: size,
|
||||||
delta: delta
|
delta: delta
|
||||||
});
|
});
|
||||||
this._changed();
|
|
||||||
if (this._autoUpdate) {
|
if (this._autoUpdate) {
|
||||||
// Update right away, don't wait for the next animation frame as
|
// Update right away, don't wait for the next animation frame as
|
||||||
// otherwise the view would flicker during resizes, see #1126
|
// otherwise the view would flicker during resizes, see #1126
|
||||||
|
|
Loading…
Reference in a new issue