diff --git a/shared/naturalcrit/splitPane/splitPane.jsx b/shared/naturalcrit/splitPane/splitPane.jsx index d6acedc6f..f7ad4bed4 100644 --- a/shared/naturalcrit/splitPane/splitPane.jsx +++ b/shared/naturalcrit/splitPane/splitPane.jsx @@ -34,7 +34,8 @@ const SplitPane = createClass({ }); } else { this.setState({ - currentDividerPos : window.innerWidth / 2 + currentDividerPos : window.innerWidth / 2, + userSetDividerPos : window.innerWidth / 2 }); } window.addEventListener('resize', this.handleWindowResize); @@ -47,7 +48,7 @@ const SplitPane = createClass({ handleWindowResize : function() { // Allow divider to increase in size to last user-set position // Limit current position to between 10% and 90% of visible space - const newLoc = this.limitPosition(this.state.userSetDividerPos || this.state.currentDividerPos, 0.1*(window.innerWidth-13), 0.9*(window.innerWidth-13)); + const newLoc = this.limitPosition(this.state.userSetDividerPos, 0.1*(window.innerWidth-13), 0.9*(window.innerWidth-13)); this.setState({ currentDividerPos : newLoc,