Skip to content

Commit 1c36bae

Browse files
authored
containerCss backgroundColor: 'transparent'
var containerCSS = { ... backgroundColor: this.opt.backgroundColor || 'transparent' }; white backgroundColor of containerCss overwrites the background of html2canvas. changed to transparent and also add an option to set backgroundColor from opt of jsPDF.
1 parent 96b4053 commit 1c36bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
right: 0,
247247
top: 0,
248248
margin: "auto",
249-
backgroundColor: "white"
249+
backgroundColor: this.opt.backgroundColor || "transparent"
250250
}; // Set the overlay to hidden (could be changed in the future to provide a print preview).
251251

252252
var source = cloneNode(

0 commit comments

Comments
 (0)