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

maxZoomLevel after image change ignored #11

Open
dominikstoetter opened this issue Aug 10, 2016 · 1 comment
Open

maxZoomLevel after image change ignored #11

dominikstoetter opened this issue Aug 10, 2016 · 1 comment

Comments

@dominikstoetter
Copy link

The zooming out of an image without 'maxZoomLevel' set lets zoom out too far. Eg. on the Example Page (White box beyond window):
bildschirmfoto 2016-08-10 um 08 42 22

In combination with zoomType: 'lens' and lensShape: 'round' the lens background gets over its border. To limit this behavior i tried to set maxZoomLevel, which solves the problem. Unfortunatelly after changing my image (because of an image gallery) The maxZoomLevel is mostly ignored.
On the first image, the maxLimitSize limits the background-size to:
640px 854px
after changing the image (same image size) the background-size gets down to:
299.766px 400px;
which has an image in image effect.

ezp-model="{thumb: vm.activeImageSmall, small: vm.activeImageLarge, large: vm.activeZoomImage}"

ezp-options="{scrollZoom: true, responsive: true, zoomType: 'lens', lensShape: 'round', lensSize: 200, easing: false, borderSize: 1, maxZoomLevel: 3, minZoomLevel: 0.5, containLensZoom: true}"

ng-src="{{vm.activeImageLarge}}"
@dominikstoetter dominikstoetter changed the title maxZoomLevel afterimage change ignored maxZoomLevel after image change ignored Aug 10, 2016
@igorlino
Copy link
Owner

@dominikstoetter may I bother you if you could please create a working example , preferably creating a question at stackoverflow
http://stackoverflow.com/ (they offer the new feature: code snippet)

There is a probability of much more people can help in stackoverflow. I currently lack time for issues, so I hope others can help out.

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

No branches or pull requests

2 participants