D
D
Dmitry2017-04-15 11:17:06
JavaScript
Dmitry, 2017-04-15 11:17:06

How to resize fancybox on ipad? or alternative to fancybox?

There is a pop-up on fancybox, it has a select, depending on the selected value, the content in the pop-up changes. everything is fine on desktop, $.fancybox.update(); works, and on the iPad, when the content is increased, the popup is stretched down, outside the viewbox. Moreover, if it was centered and small, then when increasing and triggering $.fancybox.update(); its position changes, it rises to the top of the window. However, if you rotate the tablet to change the orientation, then everything becomes fine too, the height of the popup becomes less than the height of the window. orientationchange-event, as I understand it, cannot be emulated? maybe there is some other way to win this moment?

Or maybe someone will recommend a plugin for creating popups, which is devoid of such shortcomings?

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