Merge pull request #219 from nickago/scrollBug

Fixes RHS scrolling into whitespace on new comment open
Этот коммит содержится в:
Corey Hulen
2015-07-22 10:46:12 -08:00
родитель beffcc0a3c fafce8cb72
Коммит 3d1920e83e

Просмотреть файл

@@ -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() {