Socket
Socket
Sign inDemoInstall

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.5.1 to 1.6.0

14

lib/index.js

@@ -45,3 +45,3 @@ 'use strict';

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Resizable).call(this, props));
var _this = _possibleConstructorReturn(this, (Resizable.__proto__ || Object.getPrototypeOf(Resizable)).call(this, props));

@@ -229,4 +229,4 @@ var width = props.width;

var style = window.getComputedStyle(this.refs.resizable, null);
var width = ~ ~style.getPropertyValue('width').replace('px', '');
var height = ~ ~style.getPropertyValue('height').replace('px', '');
var width = ~~style.getPropertyValue('width').replace('px', '');
var height = ~~style.getPropertyValue('height').replace('px', '');
return { width: width, height: height };

@@ -257,2 +257,10 @@ }

}, {
key: 'updateSize',
value: function updateSize(_ref3) {
var width = _ref3.width;
var height = _ref3.height;
this.setState({ width: width, height: height });
}
}, {
key: 'renderResizer',

@@ -259,0 +267,0 @@ value: function renderResizer() {

@@ -99,3 +99,3 @@ 'use strict';

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Resizer).call(this, props));
var _this = _possibleConstructorReturn(this, (Resizer.__proto__ || Object.getPrototypeOf(Resizer)).call(this, props));

@@ -102,0 +102,0 @@ _this.onTouchStart = _this.onTouchStart.bind(_this);

{
"name": "react-resizable-box",
"version": "1.5.1",
"version": "1.6.0",
"description": "",

@@ -51,13 +51,11 @@ "main": "lib/index.js",

"husky": "^0.11.4",
"karma": "0.13.19",
"karma-browserify": "4.4.0",
"karma-chrome-launcher": "0.2.2",
"karma-cli": "0.1.1",
"karma": "^1.2.0",
"karma-browserify": "^5.1.0",
"karma-cli": "^1.0.1",
"karma-fixture": "0.2.6",
"karma-html2js-preprocessor": "0.1.0",
"karma-mocha": "0.2.0",
"karma-phantomjs-launcher": "0.2.1",
"karma-phantomjs-shim": "1.2.0",
"karma-mocha": "^1.1.1",
"karma-phantomjs-launcher": "^1.0.1",
"mocha": "2.3.3",
"phantomjs-prebuilt": "2.1.6",
"phantomjs-prebuilt": "^2.1.12",
"power-assert": "1.1.0",

@@ -64,0 +62,0 @@ "react": "^15.0.1",

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