react-resize-detector
Advanced tools
Comparing version 0.1.4 to 0.1.5
import React, {Component} from 'react'; | ||
import ReactResizeDetector from 'react-resize-detector'; | ||
import ResizeDetector from 'react-resize-detector'; | ||
@@ -23,3 +23,2 @@ const s = { | ||
textAlign: 'center' | ||
}, | ||
@@ -62,3 +61,3 @@ toggleLeftColumnBtn: { | ||
<ReactResizeDetector handleWidth handleHeight onResize={this._onResize.bind(this)} /> | ||
<ResizeDetector handleWidth handleHeight onResize={this._onResize.bind(this)} /> | ||
</div> | ||
@@ -65,0 +64,0 @@ |
@@ -102,2 +102,8 @@ 'use strict'; | ||
var parent = container.parentElement; | ||
if (getComputedStyle(parent).position == 'static') { | ||
parent.style.position = 'relative'; | ||
} | ||
this.setState({ | ||
@@ -104,0 +110,0 @@ expandChildHeight: expand.offsetHeight + 10, |
@@ -45,4 +45,4 @@ { | ||
}, | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"dependencies": {} | ||
} |
@@ -8,3 +8,3 @@ # React resize detector | ||
## Demo | ||
####[Live demo](http://maslianok.github.io/react-resize-detector/) | ||
#### [Live demo](http://maslianok.github.io/react-resize-detector/) | ||
@@ -19,3 +19,3 @@ Local demo: | ||
## Installation | ||
`npm install react-resize-detector` | ||
`npm i react-resize-detector --save` | ||
@@ -55,5 +55,5 @@ ## Example | ||
#### onResize | ||
Function that will be invoked | ||
(Func) Function that will be invoked | ||
## License | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1836483
7993
0