diff --git a/src/iframeResizer.contentWindow.js b/src/iframeResizer.contentWindow.js index 936097ef6..ea735d4dc 100644 --- a/src/iframeResizer.contentWindow.js +++ b/src/iframeResizer.contentWindow.js @@ -518,7 +518,9 @@ function injectClearFixIntoBodyElement() { var clearFix = document.createElement('div') clearFix.style.clear = 'both' - clearFix.style.display = 'block' // Guard against this having been globally redefined in CSS. + // Guard against the following having been globally redefined in CSS. + clearFix.style.display = 'block' + clearFix.style.height = '0' document.body.appendChild(clearFix) }