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

Fix extra whitespace in generated image when scrollbar is present #1

Merged
merged 1 commit into from
Feb 27, 2020
Merged

Fix extra whitespace in generated image when scrollbar is present #1

merged 1 commit into from
Feb 27, 2020

Conversation

soandrew
Copy link
Contributor

html2canvas seems to have a bug where it adds extra whitespace to the generated image if a scrollbar is present. This can be seen in this screenshot:
before

This issue was reported in the html2canvas repo and has the suggested solution to hide the scrollbar just when the image is being generated.

I decided to implement that solution and here's how it looks after my change:
after

I've tested in Chrome on Windows.

@mhuap mhuap merged commit ccaf05a into mhuap:master Feb 27, 2020
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

Successfully merging this pull request may close these issues.

2 participants