diff options
author | nickago <ngonella@calpoly.edu> | 2015-07-21 08:03:10 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-07-21 11:00:54 -0700 |
commit | fafce8cb72cc8a10b98fab22c6b3547c77d75cc9 (patch) | |
tree | 831ff8b3ff2ee453668423bebd5e0228f7d19039 | |
parent | c4b92424d59ce45fa74556b949c8fe9fc5f79d5a (diff) | |
download | chat-fafce8cb72cc8a10b98fab22c6b3547c77d75cc9.tar.gz chat-fafce8cb72cc8a10b98fab22c6b3547c77d75cc9.tar.bz2 chat-fafce8cb72cc8a10b98fab22c6b3547c77d75cc9.zip |
Upon changing to a new comment thread, fixes the the bug of the RHS scrolling to whitespace below the pane
-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 581a1abe9..ad521adba 100644 --- a/web/react/components/post_right.jsx +++ b/web/react/components/post_right.jsx @@ -294,6 +294,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() { |