Skip to content

Commit

Permalink
fixed issue parallax#2632
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
kakugiki authored Feb 7, 2020
1 parent 136695d commit 9fefa7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@
{
async: true,
allowTaint: true,
scale: (this.prop.pageSize.width * this.prop.pageSize.k) / Math.max(this.prop.src.clientWidth, this.prop.src.scrollWidth, this.prop.src.offsetWidth),
backgroundColor: "#ffffff",
imageTimeout: 15000,
logging: true,
Expand Down

0 comments on commit 9fefa7c

Please sign in to comment.