react-resizable-box
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -147,4 +147,2 @@ 'use strict'; | ||
var _state2 = this.state; | ||
var width = _state2.width; | ||
var height = _state2.height; | ||
var isActive = _state2.isActive; | ||
@@ -156,3 +154,3 @@ var direction = _state2.direction; | ||
var resizable = this.refs.resizable; | ||
var styleSize = { width: width, height: height }; | ||
var styleSize = this.getBoxSize(); | ||
var clientSize = { | ||
@@ -163,4 +161,4 @@ width: resizable.clientWidth, | ||
var delta = { | ||
width: width - original.width, | ||
height: height - original.height | ||
width: styleSize.width - original.width, | ||
height: styleSize.height - original.height | ||
}; | ||
@@ -173,3 +171,7 @@ this.props.onResizeStop(direction, styleSize, clientSize, delta); | ||
value: function onResizeStart(direction, e) { | ||
this.props.onResizeStart(direction, e); | ||
var clientSize = { | ||
width: this.refs.resizable.clientWidth, | ||
height: this.refs.resizable.clientHeight | ||
}; | ||
this.props.onResizeStart(direction, this.getBoxSize(), clientSize, e); | ||
var size = this.getBoxSize(); | ||
@@ -176,0 +178,0 @@ this.setState({ |
{ | ||
"name": "react-resizable-box", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -195,2 +195,7 @@ # react-resizable-box | ||
#### v1.1.2 | ||
- Add size argument to resizeStart callback. | ||
- Fix bug | ||
#### v1.1.1 | ||
@@ -197,0 +202,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26535
411
236