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

Image is clipped when html2canvas is called when scroll position is not on top #588

Closed
nishchhalshrestha opened this issue May 7, 2015 · 3 comments

Comments

@nishchhalshrestha
Copy link

If html2canvas is called when window scroll top is 0px, image is not clipped and everything is fine. If html2canvas is called when window scroll top is not 0px (i.e. is scrolled down), image is clipped and everything breaks.

@usmonster
Copy link
Contributor

Which browser(s)? Also possibly related: #511, #167, et al., though there have been relatively-recent partial fixes to at least one of those.

@usmonster
Copy link
Contributor

Yep, this does look like just like #167. A workaround could be to save the scroll position and set it to 0 just before the invocation of html2canvas, and then restore in the .then callback.

@nishchhalshrestha
Copy link
Author

Okay. Will do as in issue #167

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

No branches or pull requests

2 participants