packages/cdp-mobile/dist/cdp.js
function() {
        var screen = this._ui.screen,
            popupHeight = this._ui.container.outerHeight( true ),
            screenHeight = screen.removeAttr( "style" ).height(),

            // Subtracting 1 here is necessary for an obscure Andrdoid 4.0 bug where
            // the browser hangs if the screen covers the entire document :/
            documentHeight = this.document.height() - 1;

        if ( screenHeight < documentHeight ) {
            screen.height( documentHeight );
        } else if ( popupHeight > screenHeight ) {
            screen.height( popupHeight );
        }
    }
function() {
        var screen = this._ui.screen,
            popupHeight = this._ui.container.outerHeight( true ),
            screenHeight = screen.removeAttr( "style" ).height(),

            // Subtracting 1 here is necessary for an obscure Andrdoid 4.0 bug where
            // the browser hangs if the screen covers the entire document :/
            documentHeight = this.document.height() - 1;

        if ( screenHeight < documentHeight ) {
            screen.height( documentHeight );
        } else if ( popupHeight > screenHeight ) {
            screen.height( popupHeight );
        }
    }
function ( ) { var screen = this . _ui . screen , popupHeight = this . _ui . container . outerHeight ( true ) , screenHeight = screen . removeAttr ( "style" ) . height ( ) , // Subtracting 1 here is necessary for an obscure Andrdoid 4.0 bug where // the browser hangs if the screen covers the entire document :/ documentHeight = this . document . height ( ) - 1 ; if ( screenHeight < documentHeight ) { screen . height ( documentHeight ) ; } else if ( popupHeight > screenHeight ) { screen . height ( popupHeight ) ; } }
Make sure the screen covers the entire document - CSS is sometimes not enough to accomplish this.
Make sure the screen covers the entire document - CSS is sometimes not enough to accomplish this .