There was an error while loading. Please reload this page.
1 parent 35c5ca3 commit 57d20a9Copy full SHA for 57d20a9
1 file changed
src/renderers/Canvas.js
@@ -76,7 +76,7 @@ _html2canvas.Renderer.Canvas = function(options) {
76
canvas.height = canvas.style.height = options.height || zStack.ctx.height;
77
78
fstyle = ctx.fillStyle;
79
- ctx.fillStyle = (Util.isTransparent(zStack.backgroundColor) && options.background !== undefined) ? options.background : parsedData.backgroundColor;
+ ctx.fillStyle = (Util.isTransparent(parsedData.backgroundColor) && options.background !== undefined) ? options.background : parsedData.backgroundColor;
80
ctx.fillRect(0, 0, canvas.width, canvas.height);
81
ctx.fillStyle = fstyle;
82
0 commit comments