From 57c25b7fa951c8bf247aaac984ba1c45f850ea33 Mon Sep 17 00:00:00 2001 From: Jackie Luo Date: Wed, 2 Nov 2016 15:33:39 -0700 Subject: [PATCH] fix(email-frame): Revert to body scrollHeight if documentElement's is zero --- internal_packages/message-list/lib/email-frame.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal_packages/message-list/lib/email-frame.jsx b/internal_packages/message-list/lib/email-frame.jsx index 3ecded969..0e367e5ec 100644 --- a/internal_packages/message-list/lib/email-frame.jsx +++ b/internal_packages/message-list/lib/email-frame.jsx @@ -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;