modules/dashboard-ui/dashboard-ui-core/src/main/webapp/js-api/dashbuilder-1.0.0.js
/**
 * Helper function that resizes IFRAME to its size
 * id: IFRAME identifier
 */
Helper function that resizes IFRAME to its size
id: IFRAME identifier
Helper function that resizes IFRAME to its size id : IFRAME identifier
function dashbuilder_autoResize(id){
    var newHeight;
    var newWidth;
    if(document.getElementById){
        var iframeElement = document.getElementById(id);
        if( iframeElement ) {
            newHeight=document.getElementById(id).contentWindow.document.body.scrollHeight + 20;
            newWidth =document.getElementById(id).contentWindow.document.body.scrollWidth+20;
            iframeElement.height = newHeight + "px";
            iframeElement.width  = newWidth  + "px";
        }
    }
}
function dashbuilder_autoResize ( id ) { var newHeight ; var newWidth ; if ( document . getElementById ) { var iframeElement = document . getElementById ( id ) ; if ( iframeElement ) { newHeight = document . getElementById ( id ) . contentWindow . document . body . scrollHeight + 20 ; newWidth = document . getElementById ( id ) . contentWindow . document . body . scrollWidth + 20 ; iframeElement . height = newHeight + "px" ; iframeElement . width = newWidth + "px" ; } } }
Helper function that resizes IFRAME to its size
 id: IFRAME identifier
Helper function that resizes IFRAME to its size id : IFRAME identifier