mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-28 11:24:11 +08:00
Fix issue with nested vertical scrollbars in messages
This commit is contained in:
parent
1013578f60
commit
c5e85dc4a1
2 changed files with 4 additions and 7 deletions
|
@ -130,8 +130,9 @@ export default class EmailFrame extends React.Component {
|
|||
height = doc.body.scrollHeight;
|
||||
}
|
||||
|
||||
// scrollHeight does not include space required by scrollbar
|
||||
return height + 25;
|
||||
// scrollHeight does not include space required by horizontal scrollbar
|
||||
// if it's present.
|
||||
return height + 18;
|
||||
};
|
||||
|
||||
_setFrameHeight = () => {
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
margin: 0;
|
||||
padding: 0;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
|
||||
-webkit-text-size-adjust: auto;
|
||||
word-wrap: break-word;
|
||||
|
@ -82,7 +83,6 @@
|
|||
padding: 0;
|
||||
margin: auto;
|
||||
max-width: 840px;
|
||||
overflow-y: hidden;
|
||||
word-break: break-word;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
@ -102,10 +102,6 @@
|
|||
border-bottom: 0;
|
||||
}
|
||||
|
||||
body.heightDetermined {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
div,
|
||||
pre {
|
||||
max-width: 100%;
|
||||
|
|
Loading…
Reference in a new issue