Skip to content

Commit 57d20a9

Browse files
committed
Fix missing background color bug
1 parent 35c5ca3 commit 57d20a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/renderers/Canvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ _html2canvas.Renderer.Canvas = function(options) {
7676
canvas.height = canvas.style.height = options.height || zStack.ctx.height;
7777

7878
fstyle = ctx.fillStyle;
79-
ctx.fillStyle = (Util.isTransparent(zStack.backgroundColor) && options.background !== undefined) ? options.background : parsedData.backgroundColor;
79+
ctx.fillStyle = (Util.isTransparent(parsedData.backgroundColor) && options.background !== undefined) ? options.background : parsedData.backgroundColor;
8080
ctx.fillRect(0, 0, canvas.width, canvas.height);
8181
ctx.fillStyle = fstyle;
8282

0 commit comments

Comments
 (0)