summaryrefslogtreecommitdiffstats
path: root/webapp/components/searchable_channel_list.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmood@users.noreply.github.com>2017-04-27 18:40:58 +0500
committerJoram Wilander <jwawilander@gmail.com>2017-04-27 09:40:58 -0400
commitbd665871831a43184ceb928bdeb862b0a46386cf (patch)
tree23b0e9d0b26d95bfabd29d707b40bb2e2c7d0eec /webapp/components/searchable_channel_list.jsx
parent66f538783bfbcb0814bcc7dff3697e84e8554649 (diff)
downloadchat-bd665871831a43184ceb928bdeb862b0a46386cf.tar.gz
chat-bd665871831a43184ceb928bdeb862b0a46386cf.tar.bz2
chat-bd665871831a43184ceb928bdeb862b0a46386cf.zip
Ui improvements (#6198)
* PLT-6306 - Post alignment in compact view * PLT-6266 - Adjusting spacing for files (compact) * PLT-6302 - Margins not equal for paragraphs in post * PLT-6332 - FIxing inline images * PLT-6134 - Fixing border on emoji picker * PLT-6323 - Fixing UI for system console user list * PLT-6375 - Updating emoji picker * PLT-6327 - Updating more channel/user list * PLT-6241 - Adding IE detection * PLT-6332- Fixing inline markdown images
Diffstat (limited to 'webapp/components/searchable_channel_list.jsx')
-rw-r--r--webapp/components/searchable_channel_list.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/components/searchable_channel_list.jsx b/webapp/components/searchable_channel_list.jsx
index 9c89f8dd4..dd633cf58 100644
--- a/webapp/components/searchable_channel_list.jsx
+++ b/webapp/components/searchable_channel_list.jsx
@@ -7,6 +7,7 @@ import * as UserAgent from 'utils/user_agent.jsx';
import $ from 'jquery';
import React from 'react';
+import ReactDOM from 'react-dom';
import {localizeMessage} from 'utils/utils.jsx';
import {FormattedMessage} from 'react-intl';
@@ -99,11 +100,13 @@ export default class SearchableChannelList extends React.Component {
this.setState({page: this.state.page + 1, nextDisabled: true});
this.nextTimeoutId = setTimeout(() => this.setState({nextDisabled: false}), NEXT_BUTTON_TIMEOUT_MILLISECONDS);
this.props.nextPage(this.state.page + 1);
+ $(ReactDOM.findDOMNode(this.refs.channelListScroll)).scrollTop(0);
}
previousPage(e) {
e.preventDefault();
this.setState({page: this.state.page - 1});
+ $(ReactDOM.findDOMNode(this.refs.channelListScroll)).scrollTop(0);
}
doSearch() {
@@ -186,7 +189,7 @@ export default class SearchableChannelList extends React.Component {
ref='channelList'
className='more-modal__list'
>
- <div>
+ <div ref='channelListScroll'>
{listContent}
</div>
</div>