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.1.1 to 1.1.2

14

lib/index.js

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

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