diff options
author | Asaad Mahmood <asaad@spinpunch.com> | 2015-12-11 23:55:48 +0500 |
---|---|---|
committer | Asaad Mahmood <asaad@spinpunch.com> | 2015-12-11 23:55:48 +0500 |
commit | b0f841462924279320d50a9e73af5ce6878ea402 (patch) | |
tree | ffa2e9e7ec1b5c6725e8cdf86cfa23e7afb38f49 /web | |
parent | 8236bde848a1e38d3cbfc5a2d5c2f191e03dba0e (diff) | |
download | chat-b0f841462924279320d50a9e73af5ce6878ea402.tar.gz chat-b0f841462924279320d50a9e73af5ce6878ea402.tar.bz2 chat-b0f841462924279320d50a9e73af5ce6878ea402.zip |
ADding utilis mobile instead of width
Diffstat (limited to 'web')
-rw-r--r-- | web/react/components/more_direct_channels.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/more_direct_channels.jsx b/web/react/components/more_direct_channels.jsx index f66eb7c26..3661b19e6 100644 --- a/web/react/components/more_direct_channels.jsx +++ b/web/react/components/more_direct_channels.jsx @@ -54,11 +54,11 @@ export default class MoreDirectChannels extends React.Component { } onShow() { - if (!Utils.isMobile()) { + if (Utils.isMobile()) { + $(ReactDOM.findDOMNode(this.refs.userList)).css('max-height', $(window).height() - 250); + } else { $(ReactDOM.findDOMNode(this.refs.userList)).perfectScrollbar(); $(ReactDOM.findDOMNode(this.refs.userList)).css('max-height', $(window).height() - 300); - } else { - $(ReactDOM.findDOMNode(this.refs.userList)).css('max-height', $(window).height() - 250); } } |