From ca7eb5d53c55b788e381983ca76aebdfc6c039ae Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Tue, 4 Aug 2015 22:11:11 +0500 Subject: Fixing scrolling of mention box in RHS --- web/react/components/mention_list.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'web/react') 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, -- cgit v1.2.3-1-g7c22