For everyone looking in future searches, I had the same problem when I needed an image (popup) for full width, even if the image has an overflow height, so I wanted it to be scrollable. In any case, I hope this helps someone in the future.
<script type="text/javascript"> jQuery(document).ready(function($) { $(".fancybox").fancybox({ autoSize : true, scrolling : 'auto', fitToView : false, width : 'auto', maxWidth : '100%', }); }); </script>
Derek source share