summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_comment.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmoodspin@users.noreply.github.com>2016-04-13 17:33:42 +0500
committerChristopher Speller <crspeller@gmail.com>2016-04-13 08:33:42 -0400
commit51549cc0b261bb113f73976adcadd50048f54233 (patch)
treeb8ac23a7618b54805b4ff864d7a1116ceefbff02 /webapp/components/create_comment.jsx
parent76c4bebf9f6b1a56cc0a3243e7301d3c65dd8fb6 (diff)
downloadchat-51549cc0b261bb113f73976adcadd50048f54233.tar.gz
chat-51549cc0b261bb113f73976adcadd50048f54233.tar.bz2
chat-51549cc0b261bb113f73976adcadd50048f54233.zip
Adding react scrollbar to the RHS thread (#2693)
* Adding scrollbar to the RHS thread * Fixing the RHS thread scrolling issue
Diffstat (limited to 'webapp/components/create_comment.jsx')
-rw-r--r--webapp/components/create_comment.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx
index 177f282d3..a91c03d58 100644
--- a/webapp/components/create_comment.jsx
+++ b/webapp/components/create_comment.jsx
@@ -203,7 +203,7 @@ class CreateComment extends React.Component {
draft.message = messageText;
PostStore.storeCommentDraft(this.props.rootId, draft);
- $('.post-right__scroll').scrollTop($('.post-right__scroll')[0].scrollHeight);
+ $('.post-right__scroll').parent().scrollTop($('.post-right__scroll')[0].scrollHeight);
this.setState({messageText: messageText});
}
handleKeyDown(e) {