diff options
author | Corey Hulen <corey@hulen.com> | 2015-07-22 10:46:12 -0800 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-07-22 10:46:12 -0800 |
commit | 3d1920e83e0a3cee6adce86f7193ad1784b4989b (patch) | |
tree | c141e0c9e7bfb35dfe675a0040b30b3a3df08e57 /web/react/components | |
parent | beffcc0a3cafc700fdce98e794396cab371638c2 (diff) | |
parent | fafce8cb72cc8a10b98fab22c6b3547c77d75cc9 (diff) | |
download | chat-3d1920e83e0a3cee6adce86f7193ad1784b4989b.tar.gz chat-3d1920e83e0a3cee6adce86f7193ad1784b4989b.tar.bz2 chat-3d1920e83e0a3cee6adce86f7193ad1784b4989b.zip |
Merge pull request #219 from nickago/scrollBug
Fixes RHS scrolling into whitespace on new comment open
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/post_right.jsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/react/components/post_right.jsx b/web/react/components/post_right.jsx index 3a5be4e08..93f5d91b0 100644 --- a/web/react/components/post_right.jsx +++ b/web/react/components/post_right.jsx @@ -293,6 +293,8 @@ module.exports = React.createClass({ }); }, componentDidUpdate: function() { + $(".post-right__scroll").scrollTop($(".post-right__scroll")[0].scrollHeight); + $(".post-right__scroll").perfectScrollbar('update'); this.resize(); }, componentWillUnmount: function() { |