Skip to content

Commit

Permalink
Fix #606 force clearfix height 0
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjbradshaw committed Mar 3, 2019
1 parent e2934cb commit 041c9b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/iframeResizer.contentWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 041c9b5

Please sign in to comment.