I'm trying to get my fancyBox to expand in height when its contents are taller than the viewport. That way, the user scrolls its contents using the browser's scroll bar. Instead, my fancyBox keeps getting its own scroll bar.
I'm just using inline content, not an iframe
. These are the options I set:
$('.fancybox').fancybox({
autoSize: 'false',
fitToView: 'false',
maxWidth: 940
});
Adding scrolling: 'no'
cuts off the content at the bottom. Explicitly defining a really tall height works, but I want the height to be determined dynamically.