You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thank you for an amazing framework! I'm currently using html2canvas 0.5.0 and my issue is that the bottom of the div element that I convert is missing in the image if I make the window smaller than the div! The div is scrollable!
I tried changing a little in the code, and changing the following code in window.html2canvas function fixes the problem:
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Hi Niklas
thank you for an amazing framework! I'm currently using html2canvas 0.5.0 and my issue is that the bottom of the div element that I convert is missing in the image if I make the window smaller than the div! The div is scrollable!
I tried changing a little in the code, and changing the following code in window.html2canvas function fixes the problem:
original:
return renderDocument(node.ownerDocument, options, node.ownerDocument.defaultView.innerWidth, node.ownerDocument.defaultView.innerHeight, index).then(function(canvas) {
changed (added + 1000 to height):
return renderDocument(node.ownerDocument, options, node.ownerDocument.defaultView.innerWidth, node.ownerDocument.defaultView.innerHeight + 1000, index).then(function(canvas) {
I noticed that the smaller I make the window the higher the number needs to be to include the bottom off the div.
I was hoping you could tell me what I’m doing wrong or maby come up with a better solution.
cheers
c_bb
The text was updated successfully, but these errors were encountered: