Magnific-popup: image resize

Created on 22 Aug 2014  路  4Comments  路  Source: dimsemenov/Magnific-Popup

Hi, thanks for your plugin,
it's not an issue, it's just to notify you that I modified the image.verticalFit function to resize according to the window innerheight, I don't know why but it didn't take the correct height...
it took the document height, so in a very long page the image max-height was to high.

thanks again

Most helpful comment

appending max-height: 100vh !important; to img.mfp-img resolves this problem for me.

All 4 comments

confirming, I have an image that's getting a style="max-height: 6000px;" which is way too large

appending max-height: 100vh !important; to img.mfp-img resolves this problem for me.

@JulianNorton Thank you for this, big help.

Yea, thx, but, close this issue if u want :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

landitus picture landitus  路  3Comments

apasho picture apasho  路  4Comments

vol4ikman picture vol4ikman  路  4Comments

softshape picture softshape  路  4Comments

mifas picture mifas  路  5Comments