mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Redraw DocumentView in #setViewBounds().
This commit is contained in:
parent
671d790068
commit
0504b99af8
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,6 @@ var DocumentView = this.DocumentView = Base.extend({
|
|||
offset = DomElement.getOffset(canvas);
|
||||
that.setViewSize(
|
||||
DomElement.getWindowSize().subtract(offset));
|
||||
that.draw();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
@ -109,6 +108,7 @@ var DocumentView = this.DocumentView = Base.extend({
|
|||
}
|
||||
// Force recalculation
|
||||
this._bounds = null;
|
||||
this.draw();
|
||||
},
|
||||
|
||||
getViewSize: function() {
|
||||
|
|
Loading…
Reference in a new issue