We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0b123a commit f27e555Copy full SHA for f27e555
src/components/MessageList/MessageList.jsx
@@ -56,8 +56,10 @@ class MessageList extends Component {
56
57
componentDidMount() {
58
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'
62
if (scrollPosition) {
- const panelMessages = this.refs.panelMessages
63
// We use requestAnimationFrame because this function may be executed before
64
// the DOM elements are actually drawn.
65
// Source: http://stackoverflow.com/a/28748160
0 commit comments