Boolean and integer values should go without , so this
$('.fancybox').fancybox({ autoSize: 'false', fitToView: 'false', maxWidth: 940 });
it should be
$('.fancybox').fancybox({ autoSize: false,
fitToView is actually an option that gives you what you need, but the quoted "false" didn't help you work. On the other hand, I'm not sure you should disable autoSize , because otherwise the inline content will not get its own height.
source share