summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-08-04 22:11:11 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-08-04 22:11:11 +0500
commitca7eb5d53c55b788e381983ca76aebdfc6c039ae (patch)
treef747a11cc1748e9a80aa24f42ae117a8402ece3a /web/react
parentfe75f1c61c2cfc0484108f984ad39e1b1dc38bec (diff)
downloadchat-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.jsx4
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,