mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-07 16:48:02 +08:00
fix(email-frame): Revert to body scrollHeight if documentElement's is zero
This commit is contained in:
parent
bf95181ea8
commit
57c25b7fa9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue