summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-11-30 20:34:44 -0800
committerCorey Hulen <corey@hulen.com>2015-11-30 20:34:44 -0800
commitf8fa1af4b8843cd9d5c3bbff0af27f0e8f9642df (patch)
tree90e9dcb58d40342bfa72546f9272fd3fa7d2197f /web/react
parent958dd7540907963e6726991246444f2a8ae36478 (diff)
parent331ba64151d8edcf77d75af3d06deb2af6fb37ad (diff)
downloadchat-f8fa1af4b8843cd9d5c3bbff0af27f0e8f9642df.tar.gz
chat-f8fa1af4b8843cd9d5c3bbff0af27f0e8f9642df.tar.bz2
chat-f8fa1af4b8843cd9d5c3bbff0af27f0e8f9642df.zip
Merge pull request #1538 from florianorben/PLT-199
PLT-199: Add scroll bar to center channel
Diffstat (limited to 'web/react')
-rw-r--r--web/react/components/posts_view.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/react/components/posts_view.jsx b/web/react/components/posts_view.jsx
index 5e374b877..9aa1a45b5 100644
--- a/web/react/components/posts_view.jsx
+++ b/web/react/components/posts_view.jsx
@@ -240,6 +240,7 @@ export default class PostsView extends React.Component {
this.updateScrolling();
}
window.addEventListener('resize', this.handleResize);
+ $(this.refs.postlist).perfectScrollbar();
}
componentWillUnmount() {
window.removeEventListener('resize', this.handleResize);
@@ -248,6 +249,7 @@ export default class PostsView extends React.Component {
if (this.props.postList != null) {
this.updateScrolling();
}
+ $(this.refs.postlist).perfectScrollbar('update');
}
shouldComponentUpdate(nextProps) {
if (this.props.isActive !== nextProps.isActive) {
@@ -326,7 +328,7 @@ export default class PostsView extends React.Component {
return (
<div
ref='postlist'
- className={'post-list-holder-by-time ' + activeClass}
+ className={'ps-container post-list-holder-by-time ' + activeClass}
onScroll={this.handleScroll}
>
<div className='post-list__table'>