From b0f841462924279320d50a9e73af5ce6878ea402 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Fri, 11 Dec 2015 23:55:48 +0500 Subject: ADding utilis mobile instead of width --- web/react/components/more_direct_channels.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/react/components') 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); } } -- cgit v1.2.3-1-g7c22