Skip to content

Commit c9ed8d9

Browse files
committed
updated renderer
1 parent 582d10e commit c9ed8d9

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ node_modules/
1313
.envrc
1414
server.js
1515
*.sublime-workspace
16+
chromedriver.log

src/renderers/Canvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ _html2canvas.Renderer.Canvas = function( options ) {
9494
canvas.height = canvas.style.height = (!usingFlashcanvas) ? options.height || zStack.ctx.height : Math.min(flashMaxSize, (options.height || zStack.ctx.height) );
9595

9696
fstyle = ctx.fillStyle;
97-
ctx.fillStyle = (zStack.backgroundColor === "transparent") ? "#fff" : zStack.backgroundColor;
97+
ctx.fillStyle = (zStack.backgroundColor === "transparent" || zStack.backgroundColor === "rgba(0, 0, 0, 0)") ? "#fff" : zStack.backgroundColor;
9898
ctx.fillRect(0, 0, canvas.width, canvas.height);
9999
ctx.fillStyle = fstyle;
100100

0 commit comments

Comments
 (0)