devtools-splitter
Advanced tools
Comparing version
{ | ||
"name": "devtools-splitter", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "DevTools Splitter", | ||
"main": "index.js", | ||
"scripts": { | ||
"storybook": "start-storybook -p 9001 -c .storybook", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -11,4 +12,7 @@ }, | ||
"license": "ISC", | ||
"dependencies": { | ||
"devDependencies": { | ||
"@kadira/storybook": "^2.35.3", | ||
"react": "^15.4.2", | ||
"react-dom": "^15.4.2" | ||
} | ||
} |
@@ -42,2 +42,4 @@ const React = require("react"); | ||
style: PropTypes.object, | ||
// Optional callback when splitbox resize stops | ||
onResizeEnd: PropTypes.func | ||
}, | ||
@@ -105,2 +107,8 @@ | ||
splitBox.classList.remove("dragging"); | ||
if (this.props.onResizeEnd) { | ||
this.props.onResizeEnd( | ||
(this.state.vert) ? this.state.width : this.state.height | ||
); | ||
} | ||
}, | ||
@@ -107,0 +115,0 @@ |
151639
1293.1%10
66.67%377
12.54%3
Infinity%