E
E
Evgeny Fedorov2014-01-29 19:15:59
fancyBox
Evgeny Fedorov, 2014-01-29 19:15:59

How to make Fancybox fill to screen size?

About the plugin fancyapps.com/fancybox/#docs
My gallery 3.jek-fdrv.com
I want to make the modal window the width OR height of the user's device.
Ignoring the original resolution of the image due to the banal increase in width.

More specifically:
If the width of the image and the height of the image are smaller than the screen, then make it enlarge the image and the modal window so that the width or height is equal to the width or height of the screen (that is, the maximum).
The guys fought for 3 hours, tried to specify minHeight and minWidth, turned off autoSize and autoDimansion. It didn't lead to success. My task is that it would not be so (it should stretch in height in this example).

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question