Change fancybox iframe size according to content height/width
问题 This might be tricky because the iframe content height/width depends on whether or not the user has the Flash plugin. The iframe has a maxwidth of 800px, so it scales according to viewport. It loads swfobject.js, which detects the Flash plugin, and swiffit.js, which scales the swf according to the width of the iframe. If there is no Flash plugin, it loads an mp4 video, with a fixed width of 550px. I did a dummy of it here: http://www.casedasole.it/fancyfit/ The first button opens an iframe