dimsemenov / Magnific-Popup

Light and responsive lightbox script with focus on performance.
http://dimsemenov.com/plugins/magnific-popup/
MIT License
11.39k stars 3.48k forks source link

No Minimum Size Option #956

Open darkfrog26 opened 7 years ago

darkfrog26 commented 7 years ago

When dealing with vector images (SVG specifically) the minimum size may be either not set or extremely small. It would be very helpful if there were an option to set the minimum size to display the popup.

chriscrowley commented 7 years ago

I'm trying to display a gallery of SVGs. How were you able to get around this limitation? Is it possible to set the min-height and min-width?

chriscrowley commented 7 years ago

I ended up using this style to get it to work with SVGs:

.mfp-img {
        min-height: 500px;
        min-width: 500px;
        background-color: white;
    }