reset canvas before rendering images

This commit is contained in:
Bala Clark 2010-07-10 13:56:07 +01:00
parent 4d6651818d
commit 3655c21c20

View file

@ -181,6 +181,10 @@ function ComicBook(id, srcs, opts) {
var width = page.width; var width = page.width;
// reset the canvas to stop duplicate pages showing
canvas.width = 0;
canvas.height = 0;
if (options.displayMode === "double") { if (options.displayMode === "double") {
// for double page spreads, factor in the width of both pages // for double page spreads, factor in the width of both pages