public/vendor/fancybox/jquery.fancybox.js
function ( action ) {
			if (F.isOpen) {
				F.current.fitToView = $.type(action) === "boolean" ? action : !F.current.fitToView;

				// Help browser to restore document dimensions
				if (isTouch) {
					F.wrap.removeAttr('style').addClass('fancybox-tmp');

					F.trigger('onUpdate');
				}

				F.update();
			}
		}
function ( action ) {
			if (F.isOpen) {
				F.current.fitToView = $.type(action) === "boolean" ? action : !F.current.fitToView;

				// Help browser to restore document dimensions
				if (isTouch) {
					F.wrap.removeAttr('style').addClass('fancybox-tmp');

					F.trigger('onUpdate');
				}

				F.update();
			}
		}
function ( action ) { if ( F . isOpen ) { F . current . fitToView = $ . type ( action ) === "boolean" ? action : ! F . current . fitToView ; // Help browser to restore document dimensions if ( isTouch ) { F . wrap . removeAttr ( 'style' ) . addClass ( 'fancybox-tmp' ) ; F . trigger ( 'onUpdate' ) ; } F . update ( ) ; } }
Shrink content to fit inside viewport or restore if resized
Shrink content to fit inside viewport or restore if resized