fix(email-frame): Revert to body scrollHeight if documentElement's is zero

This commit is contained in:
Jackie Luo 2016-11-02 15:33:39 -07:00
parent bf95181ea8
commit 57c25b7fa9

View file

@ -112,7 +112,7 @@ export default class EmailFrame extends React.Component {
}
}
if (doc && doc.documentElement) {
if (doc && doc.documentElement && doc.documentElement.scrollHeight > 0) {
height = doc.documentElement.scrollHeight;
} else {
height = doc.body.scrollHeight;