mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Make sure the whole canvas is cleared.
This commit is contained in:
parent
e772038727
commit
4c4b8246ee
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ Doc = Base.extend({
|
|||
|
||||
redraw: function() {
|
||||
if (this.canvas) {
|
||||
this.ctx.clearRect(0, 0, this.size.width, this.size.height);
|
||||
this.ctx.clearRect(0, 0, this.size.width + 1, this.size.height);
|
||||
for (var i = 0, l = this.layers.length; i < l; i++) {
|
||||
this.layers[i].draw(this.ctx);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue