mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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;
|
||||
this._setElementSize(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', {
|
||||
size: size,
|
||||
delta: delta
|
||||
});
|
||||
this._changed();
|
||||
if (this._autoUpdate) {
|
||||
// Update right away, don't wait for the next animation frame as
|
||||
// otherwise the view would flicker during resizes, see #1126
|
||||
|
|
Loading…
Reference in a new issue