From 4c4b8246ee705c4d546b3ef4a77f656a19a7cf15 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sun, 20 Feb 2011 23:31:33 +0100 Subject: [PATCH] Make sure the whole canvas is cleared. --- src/document/Doc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document/Doc.js b/src/document/Doc.js index 28ea6659..e78e04f9 100644 --- a/src/document/Doc.js +++ b/src/document/Doc.js @@ -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); }