Skip to content

Commit

Permalink
Fix issue with nested vertical scrollbars in messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow committed Dec 2, 2017
1 parent 1013578 commit c5e85dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 3 additions & 2 deletions app/internal_packages/message-list/lib/email-frame.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down
6 changes: 1 addition & 5 deletions app/static/email-frame.less
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
margin: 0;
padding: 0;
overflow-x: auto;
overflow-y: hidden;

-webkit-text-size-adjust: auto;
word-wrap: break-word;
Expand All @@ -82,7 +83,6 @@
padding: 0;
margin: auto;
max-width: 840px;
overflow-y: hidden;
word-break: break-word;
-webkit-font-smoothing: antialiased;
}
Expand All @@ -102,10 +102,6 @@
border-bottom: 0;
}

body.heightDetermined {
overflow-y: hidden;
}

div,
pre {
max-width: 100%;
Expand Down

0 comments on commit c5e85dc

Please sign in to comment.