function createIframe()

in src/EmbeddableObject.js [295:314]


function createIframe(options: EmbeddingOptions): HTMLIFrameElement {
    let {width, height, isQEmbedded} = options;
    const {loadingHeight, url, scrolling, className} = options;
    if (height === DASHBOARD_SIZE_OPTIONS.AUTO_FIT) {
        height = loadingHeight;
    }
    const iframe = document.createElement('iframe');
    iframe.className = ['quicksight-embedding-iframe', className].join(' ').trim();
    iframe.width = width || '100%';
    iframe.height = height || '100%';
    iframe.scrolling = scrolling || 'no';
    iframe.onload = sendInitialPostMessage.bind(null, iframe, url);
    iframe.src = getIframeSrc(options);
    iframe.style.border = '0px';
    iframe.style.padding = '0px';
    if (isQEmbedded) {
        iframe.setAttribute('allowtransparency', 'true');
    }
    return iframe;
}