fancyapps/fancyBox — Issue #53: iFrame Resize
Author: zsoltib
Created: 2011-12-10 03:10:39+00:00
State: open

hi, v.1.3.4 you released a patch that enables the ability to resize an iframe. i upgraded to v.2, even paid for it, and was surprised to find that feature has been removed. Hoping to get it back and receive instructions on how i can do it myself. below is code i tried, to no avail. as you'll see i had to modify the fancybox.js file and add a couple divs to the templates in order to make this script work - or at least i thought it was going to work. any help would be greatly appreciated. thank you for the great software!

function fb_resize(w, h) {
if (w > 0 || h > 0) {
if (w > 0) {$('#fbwrap').css({ width: w+"px"}); $('#fbinner').css({ width: (w-6)+"px"});}
if (h > 0) {$('#fbwrap').css({ height: h+"px"}); $('#fbinner').css({ height: (h-6)+"px"});}
$.fancybox.update();
}
}