Skip to content

Commit f17e926

Browse files
kakugikiMrRio
andauthored
fixed issue #2632 (#2665)
* fixed issue #2632 toContext2d: html2canvas.scale: (this.prop.pageSize.width * this.prop.pageSize.k) / Math.max(this.prop.src.clientWidth, this.prop.src.scrollWidth, this.prop.src.offsetWidth) * simply set the scale to 1 this is better than the math and able to keep the original scale/size Co-authored-by: James Hall <[email protected]>
1 parent a25a8b3 commit f17e926

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/modules/html.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@
351351
{
352352
async: true,
353353
allowTaint: true,
354+
scale: 1,
354355
backgroundColor: "#ffffff",
355356
imageTimeout: 15000,
356357
logging: true,

0 commit comments

Comments
 (0)