Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-resizable-box

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-resizable-box - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

9

lib/index.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc