0

I need to set the height and width 1:1 and I wrote a function like this:

function fancyboxSize () {
    $('.fancybox-skin').css({'min-height':$(this).width()});
    $('.fancybox-inner').css({'min-height':$(this).width()});
}

And called it out like so:

$('.fancybox').fancybox({
  afterLoad : function(){
   fancyboxSize();
  }
});

but this doesn't work, it just makes it really high, how could I set it to be a perfect box? Version I'm using is 2.1.4

Xeen
  • 6,955
  • 16
  • 60
  • 111

0 Answers0