Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

react-resize-detector

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-resize-detector - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

5

example/containers/App.js
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,

2

package.json

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