francoischalifour / medium-zoom

🔎🖼 A JavaScript library for zooming images like Medium
https://medium-zoom.francoischalifour.com
MIT License
3.62k stars 165 forks source link

Floated images with margin not displaying right #11

Closed sygad closed 7 years ago

sygad commented 7 years ago

Hi

When images are placed side by side, or floating them and a margin is placed on the zoomed image, the margin is not present on the left hand side of the zoomed image and is doubled on the right hand side.

This doesn't happen when it's just a single image that it isn't floated.

francoischalifour commented 7 years ago

Thank you so much! I figured out why - will release a patch very soon 👍

sygad commented 7 years ago

cheers

If i had to guess I would say it's something to do with measuring teh viewport width which doesn't accommodate the scroll bar

On 21 July 2017 at 14:56, François Chalifour notifications@github.com wrote:

Thank you so much! I figured out why - will release a patch very soon 👍

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/francoischalifour/medium-zoom/issues/11#issuecomment-317007795, or mute the thread https://github.com/notifications/unsubscribe-auth/ABsIVcQxk47ydyQAZM7e4RWS4z5Xrv9bks5sQK3_gaJpZM4OebDH .

-- Connect with me on LinkedIn http://uk.linkedin.com/in/darrencousins | Follow me on Twitter https://twitter.com/sygad1 | View my work at my Lab Pages http://www.darrencousins.com/lab/