-
Notifications
You must be signed in to change notification settings - Fork 331
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
Zoomed image is cut-off by parent overflow:hidden #61
Comments
I'm having the same problem. edited: And to turn it again to hidden, I tweak the zoom.js prototype function a little bit by adding a custom function to toggle css styling from visible to hidden in Zoom.prototype.close. |
I'm having this issue too. @claudiofrs that's awesome! Would you be able to create a fork of your solution with the additions you suggested and possibly a small (doesn't have to be pretty) example? I'd love to dive in and check it out. |
It adds a class "zoom-overlay-open" to "body" element when an image is zoomed, so I think overriding the css would be good enough in this case:
|
@kitce this is the issue we're talking about: http://codepen.io/yipyop/pen/RRpOKQ. I don't know if what you're saying makes sense with that example. It's really about the parent element that the image is contained within. |
Our layout contains the images in a div with the style overflow:hidden. When the images are zoomed they do not act as a true overlay and are cut off by this parent div.
I couldn't create a fiddle, but you can replicate this behaviour by adding this to your site:
As you can see by clicking the palm img, the image will be zoomed, and cut off.
According to this site it should be possible with a different css positioning.
The text was updated successfully, but these errors were encountered: