mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -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);
|
offset = DomElement.getOffset(canvas);
|
||||||
that.setViewSize(
|
that.setViewSize(
|
||||||
DomElement.getWindowSize().subtract(offset));
|
DomElement.getWindowSize().subtract(offset));
|
||||||
that.draw();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -109,6 +108,7 @@ var DocumentView = this.DocumentView = Base.extend({
|
||||||
}
|
}
|
||||||
// Force recalculation
|
// Force recalculation
|
||||||
this._bounds = null;
|
this._bounds = null;
|
||||||
|
this.draw();
|
||||||
},
|
},
|
||||||
|
|
||||||
getViewSize: function() {
|
getViewSize: function() {
|
||||||
|
|
Loading…
Reference in a new issue