From fafce8cb72cc8a10b98fab22c6b3547c77d75cc9 Mon Sep 17 00:00:00 2001 From: nickago Date: Tue, 21 Jul 2015 08:03:10 -0700 Subject: Upon changing to a new comment thread, fixes the the bug of the RHS scrolling to whitespace below the pane --- web/react/components/post_right.jsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web') 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() { -- cgit v1.2.3-1-g7c22