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

screenshot with horizontal scroll #4

Closed
vinodnegi87 opened this issue Apr 7, 2016 · 1 comment
Closed

screenshot with horizontal scroll #4

vinodnegi87 opened this issue Apr 7, 2016 · 1 comment
Assignees

Comments

@vinodnegi87
Copy link

*Question *
I downloaded your screenshot plugin and i want to take the screenshot of a page with horizontal scrolls in it. The plugin works fine with vertical scrolls but it doesn't take the screen shot of the part which is not visible in the horizontal scroll.

Can you please provide a solution for it?
Thanks in advance.

@Dani3lSun Dani3lSun self-assigned this Apr 7, 2016
@Dani3lSun
Copy link
Owner

Hi @vinodnegi87
I looked into that behavior and it seems that it is not possible without changing the html of your page. This plugin uses html2canvas for taking a screenshot of the page as it is. I found these issues on the github page of html2canvas:
niklasvh/html2canvas#60
niklasvh/html2canvas#108

The only way to solve it is to modify the html via a dynamic action just before the screenshot happens. I think you have to test it, the css style overflow:hidden should be changed to overflow:visible of the region.(maybe on multiple places).
I would test it with chrome developer tools or similar tool to get the result you would like to have, if that works write a javascript dynamic action to do the same changes you did with the developer tools...

Hope that helps!

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