Fix issue with nested vertical scrollbars in messages

This commit is contained in:
Ben Gotow 2017-12-01 18:55:09 -08:00
parent 1013578f60
commit c5e85dc4a1
2 changed files with 4 additions and 7 deletions

View file

@ -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 = () => {

View file

@ -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%;