react-resizable-box
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -108,2 +108,4 @@ 'use strict'; | ||
var isActive = _state.isActive; | ||
var width = _state.width; | ||
var height = _state.height; | ||
var _props = this.props; | ||
@@ -146,3 +148,6 @@ var minWidth = _props.minWidth; | ||
} | ||
this.setState({ width: newWidth, height: newHeight }); | ||
this.setState({ | ||
width: width !== 'auto' ? newWidth : 'auto', | ||
height: height !== 'auto' ? newHeight : 'auto' | ||
}); | ||
var resizable = this.refs.resizable; | ||
@@ -227,3 +232,3 @@ var styleSize = { | ||
var getSize = function getSize(key) { | ||
if (typeof _this2.state[key] === 'undefined') return 'auto';else if (/px$/.test(_this2.state[key].toString())) return _this2.state[key];else if (/%$/.test(_this2.state[key].toString())) return _this2.state[key]; | ||
if (typeof _this2.state[key] === 'undefined' || _this2.state[key] === 'auto') return 'auto';else if (/px$/.test(_this2.state[key].toString())) return _this2.state[key];else if (/%$/.test(_this2.state[key].toString())) return _this2.state[key]; | ||
return _this2.state[key] + 'px'; | ||
@@ -230,0 +235,0 @@ }; |
{ | ||
"name": "react-resizable-box", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "", | ||
@@ -69,2 +69,3 @@ "main": "lib/index.js", | ||
"react-addons-test-utils": "^15.0.1", | ||
"react-dom": "^15.2.0", | ||
"sinon": "1.17.3", | ||
@@ -71,0 +72,0 @@ "watchify": "3.5.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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
470
21604
37
5
1
0