Update search results profiles properly on refresh and handle scrollHeight error

Этот коммит содержится в:
JoramWilander
2016-02-25 19:02:30 -05:00
родитель 7e59440abb
Коммит d563bf1152
2 изменённых файлов: 18 добавлений и 4 удалений

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

@@ -321,7 +321,7 @@ export default class PostsView extends React.Component {
if (this.refs.newMessageSeparator) {
var objDiv = this.refs.postlist;
objDiv.scrollTop = this.refs.newMessageSeparator.offsetTop; //scrolls node to top of Div
} else {
} else if (this.refs.postlist) {
this.refs.postlist.scrollTop = this.refs.postlist.scrollHeight;
}
});