Skip to content

Commit f27e555

Browse files
author
Vikas Agarwal
committed
Github issue #522 Discussions || Left side panel does not have scroll in Safari
-- Fixed
1 parent d0b123a commit f27e555

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/MessageList/MessageList.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ class MessageList extends Component {
5656

5757
componentDidMount() {
5858
const { scrollPosition } = this.props
59+
const panelMessages = this.refs.panelMessages
60+
// 145 = 60 for topbar + 45 for panel title + 20px for margin between topbar and left panel + 10px padding
61+
panelMessages.style.height = (window.innerHeight - 145) + 'px'
5962
if (scrollPosition) {
60-
const panelMessages = this.refs.panelMessages
6163
// We use requestAnimationFrame because this function may be executed before
6264
// the DOM elements are actually drawn.
6365
// Source: http://stackoverflow.com/a/28748160

0 commit comments

Comments
 (0)