Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing bottom off element/screenshot! #650

Closed
coolbombom opened this issue Aug 7, 2015 · 2 comments
Closed

missing bottom off element/screenshot! #650

coolbombom opened this issue Aug 7, 2015 · 2 comments

Comments

@coolbombom
Copy link

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

@coolbombom coolbombom changed the title missing bottom off image/screenshot! missing bottom off element/screenshot! Aug 7, 2015
@niklasvh
Copy link
Owner

Is this still an issue with v1.0.0? If so, could you please share an example on jsfiddle.

@no-response
Copy link

no-response bot commented Dec 12, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants