-
Notifications
You must be signed in to change notification settings - Fork 9
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
Viewer element resize after screenshot #2
Comments
Hi there! I will look into this tomorrow. Thanks for the pointer, it's some time ago but I think I'll find out :) Thanks, ~Koen
Cheers, |
@vz-chameleon : What happens is that I first:
So this obviously does not work when you want your display to scale. In the mean time, it might be satisfyable for you to comment out the lines you mentioned and disable the "showOptions" variable. This means you're always "just" making a screenshot, but it does not touch the dimensions of your viewer. ~Koen |
You're right, I defined mine with a percentage of the screen. |
Hi, |
Hi !
I'm trying to use your plugin to take screenshots of my OpenSeaDragon viewer and i came across an interesting bug : I had the developper console for Firefox open and after I've taken a simple screenshot (with the 'Just take a screenshot' option) the viewport size is reduced. Same happens if i resize the browser's page, take a screenshot, and then go back to a full page size. I've attached some screenshots to illustrate.
Looking through your plugin I saw that at some point you redefine the viewer's element height and width
viewer.element.style.height = output_y_size + "px";
viewer.element.style.width = output_y_size + "px";
Is this necessary to take the screenshot ? I've commented all redefinitions of viewer element's height and width and this seems to fix the bug, but I don't know if by doing so i've killed off some functionalities
Thanks in advance for your help ! :)
The text was updated successfully, but these errors were encountered: