templates/embed/embed.js
function fitPreviewToContent() {
  var iframeDoc = preview.contentDocument || preview.contentWindow.document;
  setPreviewHeight(iframeDoc.body.offsetHeight);
}
function fitPreviewToContent() {
  var iframeDoc = preview.contentDocument || preview.contentWindow.document;
  setPreviewHeight(iframeDoc.body.offsetHeight);
}
function fitPreviewToContent ( ) { var iframeDoc = preview . contentDocument || preview . contentWindow . document ; setPreviewHeight ( iframeDoc . body . offsetHeight ) ; }
Adjusts the iframe height based on the iframe's document height. The width is unchanged.
Adjusts the iframe height based on the iframe s document height . The width is unchanged .