js/iframeResizer.js
function setupBodyMarginValues() {
      if (
        'number' ===
          typeof (settings[iframeId] && settings[iframeId].bodyMargin) ||
        '0' === (settings[iframeId] && settings[iframeId].bodyMargin)
      ) {
        settings[iframeId].bodyMarginV1 = settings[iframeId].bodyMargin
        settings[iframeId].bodyMargin =
          '' + settings[iframeId].bodyMargin + 'px'
      }
    }
function setupBodyMarginValues() {
      if (
        'number' ===
          typeof (settings[iframeId] && settings[iframeId].bodyMargin) ||
        '0' === (settings[iframeId] && settings[iframeId].bodyMargin)
      ) {
        settings[iframeId].bodyMarginV1 = settings[iframeId].bodyMargin
        settings[iframeId].bodyMargin =
          '' + settings[iframeId].bodyMargin + 'px'
      }
    }
function setupBodyMarginValues ( ) { if ( 'number' === typeof ( settings [ iframeId ] && settings [ iframeId ] . bodyMargin ) || '0' === ( settings [ iframeId ] && settings [ iframeId ] . bodyMargin ) ) { settings [ iframeId ] . bodyMarginV1 = settings [ iframeId ] . bodyMargin settings [ iframeId ] . bodyMargin = '' + settings [ iframeId ] . bodyMargin + 'px' } }
The V1 iFrame script expects an int, where as in V2 expects a CSS string value such as '1px 3em', so if we have an int for V2, set V1=V2 and then convert V2 to a string PX value.
The V1 iFrame script expects an int where as in V2 expects a CSS string value such as 1px 3em so if we have an int for V2 set V1 = V2 and then convert V2 to a string PX value .