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

LensContainer width problem - Lens is very wide and out of bounds on small resolution image #92

Open
cAstraea opened this issue Nov 18, 2017 · 2 comments

Comments

@cAstraea
Copy link

Hello Having a problem with the lens. Usually working on images with high res such as
3306 x 4678 and had to manually set the zoomLevel to zoomLevel: 6.588732394366197 to see the preview zoomed out. On smaller res image this zoomLevel causes problem with the lens overflowing and the preview looking messed up? Is there a way to set an auto zoom level to allow full width viewing ?
image

@igorlino
Copy link
Owner

What about reinitializing the plugin differently for smaller images ?

@cAstraea
Copy link
Author

Thanks , ended up checking for this.naturalHeight of the pictures

zoomLevel: (this.naturalHeight < 1000) ? 1.2 : 6.588732394366197

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