Socket
Socket
Sign inDemoInstall

react-split-pane

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-split-pane - npm Package Compare versions

Comparing version 0.1.23 to 0.1.24

2

lib/Pane.js

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

};
if (this.state.size) {
if (this.state.size !== undefined) {
if (split === 'vertical') {

@@ -35,0 +35,0 @@ style.width = this.state.size;

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

var ref = this.refs.pane1;
if (ref && this.props.defaultSize && !this.state.resized) {
if (ref && this.props.defaultSize !== undefined && !this.state.resized) {
ref.setState({

@@ -61,2 +61,5 @@ size: this.props.defaultSize

var position = this.props.split === 'vertical' ? event.clientX : event.clientY;
if (this.props.onDragStart) {
this.props.onDragStart();
}
this.setState({

@@ -86,10 +89,12 @@ active: true,

if (newSize >= this.props.minSize) {
if (this.props.onChange) {
this.props.onChange(newSize);
}
ref.setState({
size: newSize
});
if (newSize < this.props.minSize) {
newSize = this.props.minSize;
}
if (this.props.onChange) {
this.props.onChange(newSize);
}
ref.setState({
size: newSize
});
}

@@ -117,2 +122,3 @@ }

merge: function merge(into, obj) {

@@ -119,0 +125,0 @@ for (var attr in obj) {

@@ -5,3 +5,3 @@ {

"main": "index.js",
"version": "0.1.23",
"version": "0.1.24",
"repository": {

@@ -32,18 +32,18 @@ "type": "git",

"devDependencies": {
"babel-cli": "^6.3.17",
"babel-eslint": "^4.1.5",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-cli": "^6.5.1",
"babel-eslint": "^5.0.0",
"babel-preset-es2015": "^6.5.0",
"babel-preset-react": "^6.5.0",
"babel-plugin-add-module-exports": "^0.1.2",
"babelify": "^7.2.0",
"browserify": "^12.0.1",
"chai": "^3.4.1",
"coveralls": "^2.11.6",
"express": "^4.13.3",
"mochify": "^2.14.3",
"mochify-istanbul": "^2.3.0",
"react": "^0.14.3",
"react-dom": "^0.14.3",
"react-addons-test-utils": "^0.14.3",
"watchify": "^3.6.1"
"browserify": "^13.0.0",
"chai": "^3.5.0",
"coveralls": "^2.11.8",
"express": "^4.13.4",
"mochify": "^2.17.0",
"mochify-istanbul": "^2.4.1",
"react": "^0.14.7",
"react-dom": "^0.14.7",
"react-addons-test-utils": "^0.14.7",
"watchify": "^3.7.0"
},

@@ -50,0 +50,0 @@ "scripts": {

Sorry, the diff of this file is too big to display

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