Added non-default reliant behavior to initial scroll on mount

Этот коммит содержится в:
nickago
2015-08-12 10:35:50 -07:00
родитель ec370604ac
Коммит d53827cce3

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

@@ -64,7 +64,11 @@ module.exports = React.createClass({
SocketStore.addChangeListener(this._onSocketChange);
// Timeout exists for the DOM to fully render before making changes
setTimeout(this.scrollWindow, 1);
var self = this
setTimeout(function initialScroll() {
self.holdPosition = false;
self.scrollWindow();
}, 1);
// Handle browser resizing
$(window).resize(this.onResize);