Merge pull request #1576 from mattermost/remove-scroll
Remove perfectscrollbar from center channel
Этот коммит содержится в:
@@ -280,7 +280,6 @@ 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();
|
|
||||||
PreferenceStore.addChangeListener(this.updateState);
|
PreferenceStore.addChangeListener(this.updateState);
|
||||||
}
|
}
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
@@ -291,7 +290,6 @@ 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, nextState) {
|
shouldComponentUpdate(nextProps, nextState) {
|
||||||
if (this.props.isActive !== nextProps.isActive) {
|
if (this.props.isActive !== nextProps.isActive) {
|
||||||
@@ -373,7 +371,7 @@ export default class PostsView extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref='postlist'
|
ref='postlist'
|
||||||
className={'ps-container post-list-holder-by-time ' + activeClass}
|
className={'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