google-code-export / fancybox

Automatically exported from code.google.com/p/fancybox
1 stars 0 forks source link

iFrame resize in 2.0+ #116

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
there's no way to resize an iFrame in v.2. i found the resize patch for the 
previous version. hoping to get similar functionality in v.2 either by patch, 
instructions or a version upgrade to the gold build. thanks man. really great 
software!

tried this on v.2, no luck. since v.2 uses classes instead of divs i created 
two divs, one for the wrapper and the second for inner css.

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(); 
  } 
}

Original issue reported on code.google.com by bayorzs...@gmail.com on 10 Dec 2011 at 1:54

GoogleCodeExporter commented 9 years ago
Were u able to fix this issue?If yes,please let me know how to do it as i hav 
to handle the same issue

Original comment by arun.u...@gmail.com on 6 Jan 2012 at 5:16