Skip to content

Commit

Permalink
fix: Chrome65 iframe’s parent display:none, iframe body offsetHeight …
Browse files Browse the repository at this point in the history
…return 0.
  • Loading branch information
aniude committed Mar 16, 2018
1 parent b0847fe commit ffec29b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iframeResizer.contentWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@
},

lowestElement: function getBestHeight() {
return Math.max(getHeight.bodyOffset(), getMaxElement('bottom',getAllElements()));
return Math.max(getHeight.bodyOffset() || getHeight.documentElementOffset(), getMaxElement('bottom',getAllElements()));
},

taggedElement: function getTaggedElementsHeight() {
Expand Down

0 comments on commit ffec29b

Please sign in to comment.