I have some videos that load into a fancybox iframe. The relevant iframe code is:
$('.fancybox').fancybox({
modal : true,
maxWidth : 570,
maxHeight : 320,
autoSize : true,
autoWidth: true,
autoHeight: true,
fitToView: false,
The videos are in a container with max-width:550px
(so it scales for smaller viewports). At the end of the last video there's an endcard with a link to a new page which is supposed to just insert itself into the same iframe. But instead, the iframe collapses to a height of about 150px, which is the height of the div on the page. I added fitToView: false
based on an answer I saw here, hoping it would maintain the iframe height at whatever it was for the videos. It doesn't.
What would do the trick?