Can anyone help me figure out how to adjust the overlay background height (overlayOpacity portion) in fancybox 2 to match the content height with no extra spaces at the top and bottom of the fancybox?
Here is the code I'm currently using:
jQuery.fancybox({
'scrolling': 'no',
'hideOnContentClick': true,
'autoSize' : true,
'fitToView' : false,
'height' : '100%',
'hideOnOverlayClick' : true,
'content' : jQuery('.EngpopupContent'),
'overlayShow' : true,
'overlayOpacity' : 0.9,
'overlayColor' : '#000',
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'changeFade' : 'fast',
'easingIn' : 'swing',
'easingOut' : 'swing',
'showCloseButton' : true,
//'showNavArrows' : true,
'enableEscapeButton' : true,
'onStart': function(){
jQuery("#fancybox-overlay").css({"position":"fixed"});
}
});
You can check out a reference link that demonstrates what I'm trying to achieve. Please click on the "Please Select Product options" button.
If anyone could offer some assistance, that would be greatly appreciated!