summaryrefslogtreecommitdiffstats
path: root/web/react/components/mention_list.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-08-06 10:23:04 -0400
committerChristopher Speller <crspeller@gmail.com>2015-08-06 10:23:04 -0400
commit48df0037a244302bdb18efbd20015d936c4462e4 (patch)
tree06eec827ccf7bd6e1df0828085eac159cb83bb4d /web/react/components/mention_list.jsx
parentcc78cc9baced6693d7052a7ff9e9a0e04fbdff5f (diff)
parent331ab2acfc16d5dcfe8ea1be94e5015506b9186b (diff)
downloadchat-48df0037a244302bdb18efbd20015d936c4462e4.tar.gz
chat-48df0037a244302bdb18efbd20015d936c4462e4.tar.bz2
chat-48df0037a244302bdb18efbd20015d936c4462e4.zip
Merge pull request #329 from asaadmahmoodspin/ui-changes
UI Improvements
Diffstat (limited to 'web/react/components/mention_list.jsx')
-rw-r--r--web/react/components/mention_list.jsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/react/components/mention_list.jsx b/web/react/components/mention_list.jsx
index a0f68df98..5f1bb6d0e 100644
--- a/web/react/components/mention_list.jsx
+++ b/web/react/components/mention_list.jsx
@@ -20,6 +20,12 @@ module.exports = React.createClass({
PostStore.addMentionDataChangeListener(this.onListenerChange);
var self = this;
+ $('.post-right__scroll').scroll(function(){
+ 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,
function(e) {
if (!self.isEmpty() && self.state.mentionText !== '-1' && (e.which === 13 || e.which === 9)) {