diff options
author | Asaad Mahmood <Unknowngi@live.com> | 2015-08-04 22:11:11 +0500 |
---|---|---|
committer | Asaad Mahmood <Unknowngi@live.com> | 2015-08-04 22:11:11 +0500 |
commit | ca7eb5d53c55b788e381983ca76aebdfc6c039ae (patch) | |
tree | f747a11cc1748e9a80aa24f42ae117a8402ece3a /web/react | |
parent | fe75f1c61c2cfc0484108f984ad39e1b1dc38bec (diff) | |
download | chat-ca7eb5d53c55b788e381983ca76aebdfc6c039ae.tar.gz chat-ca7eb5d53c55b788e381983ca76aebdfc6c039ae.tar.bz2 chat-ca7eb5d53c55b788e381983ca76aebdfc6c039ae.zip |
Fixing scrolling of mention box in RHS
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/mention_list.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/react/components/mention_list.jsx b/web/react/components/mention_list.jsx index 829462456..09313bbbd 100644 --- a/web/react/components/mention_list.jsx +++ b/web/react/components/mention_list.jsx @@ -21,7 +21,9 @@ module.exports = React.createClass({ var self = this; $('.post-right__scroll').scroll(function(){ - self.forceUpdate(); + if($('.mentions--top').length){ + $('#reply_mention_tab .mentions--top').css({ bottom: $(window).height() - $('.post-right__scroll #reply_textbox').offset().top }); + } }); $('body').on('keydown.mentionlist', '#'+this.props.id, |