PLT-199: Add scroll bar to center channel
Этот коммит содержится в:
@@ -240,6 +240,7 @@ export default class PostsView extends React.Component {
|
|||||||
this.updateScrolling();
|
this.updateScrolling();
|
||||||
}
|
}
|
||||||
window.addEventListener('resize', this.handleResize);
|
window.addEventListener('resize', this.handleResize);
|
||||||
|
$(this.refs.postlist).perfectScrollbar();
|
||||||
}
|
}
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
window.removeEventListener('resize', this.handleResize);
|
window.removeEventListener('resize', this.handleResize);
|
||||||
@@ -248,6 +249,7 @@ export default class PostsView extends React.Component {
|
|||||||
if (this.props.postList != null) {
|
if (this.props.postList != null) {
|
||||||
this.updateScrolling();
|
this.updateScrolling();
|
||||||
}
|
}
|
||||||
|
$(this.refs.postlist).perfectScrollbar('update');
|
||||||
}
|
}
|
||||||
shouldComponentUpdate(nextProps) {
|
shouldComponentUpdate(nextProps) {
|
||||||
if (this.props.isActive !== nextProps.isActive) {
|
if (this.props.isActive !== nextProps.isActive) {
|
||||||
@@ -326,7 +328,7 @@ export default class PostsView extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref='postlist'
|
ref='postlist'
|
||||||
className={'post-list-holder-by-time ' + activeClass}
|
className={'ps-container post-list-holder-by-time ' + activeClass}
|
||||||
onScroll={this.handleScroll}
|
onScroll={this.handleScroll}
|
||||||
>
|
>
|
||||||
<div className='post-list__table'>
|
<div className='post-list__table'>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user