Skip to content

Commit 8918e40

Browse files
committed
update bounds on componentWillReceiveProps
1 parent 1c9d79c commit 8918e40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Resizable.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ var Resizable = module.exports = React.createClass({
4343
if (!this.state.resizing) {
4444
this.setState({
4545
initialWidth: props.width,
46-
initialHeight: props.height
46+
initialHeight: props.height,
47+
bounds: this.constraintsToBounds()
4748
});
4849
this.refs.draggable.resetState();
4950
}

0 commit comments

Comments
 (0)