dist/crocodoc.viewer.js
function initResizer() {
        var $iframe = $('<iframe frameborder="0">'),
            $div = $('<div>');
        $iframe.add($div).css({
            opacity: 0,
            visiblility: 'hidden',
            position: 'absolute',
            width: '100%',
            height: '100%',
            top: 0,
            left: 0,
            border: 0
        });
        $iframe.prependTo($div.prependTo(element));
        fixElementPosition();
        $window = $($iframe[0].contentWindow);
        $window.on('resize', checkResize);
    }
function initResizer() {
        var $iframe = $('<iframe frameborder="0">'),
            $div = $('<div>');
        $iframe.add($div).css({
            opacity: 0,
            visiblility: 'hidden',
            position: 'absolute',
            width: '100%',
            height: '100%',
            top: 0,
            left: 0,
            border: 0
        });
        $iframe.prependTo($div.prependTo(element));
        fixElementPosition();
        $window = $($iframe[0].contentWindow);
        $window.on('resize', checkResize);
    }
function initResizer ( ) { var $iframe = $ ( '<iframe frameborder="0">' ) , $div = $ ( '<div>' ) ; $iframe . add ( $div ) . css ( { opacity : 0 , visiblility : 'hidden' , position : 'absolute' , width : '100%' , height : '100%' , top : 0 , left : 0 , border : 0 } ) ; $iframe . prependTo ( $div . prependTo ( element ) ) ; fixElementPosition ( ) ; $window = $ ( $iframe [ 0 ] . contentWindow ) ; $window . on ( 'resize' , checkResize ) ; }
Initialize an iframe to fire events on resize
@returns {void}
@private
Initialize an iframe to fire events on resize