rc-resize-observer
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -17,2 +17,4 @@ import * as React from 'react'; | ||
width: number; | ||
offsetHeight: number; | ||
offsetWidth: number; | ||
} | ||
@@ -28,2 +30,4 @@ declare type RefNode = React.ReactInstance | HTMLElement | null; | ||
height: number; | ||
offsetHeight: number; | ||
offsetWidth: number; | ||
}; | ||
@@ -30,0 +34,0 @@ componentDidMount(): void; |
@@ -30,3 +30,5 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
width: 0, | ||
height: 0 | ||
height: 0, | ||
offsetHeight: 0, | ||
offsetWidth: 0 | ||
}; | ||
@@ -53,6 +55,8 @@ | ||
if (_this.state.width !== fixedWidth || _this.state.height !== fixedHeight) { | ||
if (_this.state.width !== fixedWidth || _this.state.height !== fixedHeight || _this.state.offsetWidth !== offsetWidth || _this.state.offsetHeight !== offsetHeight) { | ||
var size = { | ||
width: fixedWidth, | ||
height: fixedHeight | ||
height: fixedHeight, | ||
offsetWidth: offsetWidth, | ||
offsetHeight: offsetHeight | ||
}; | ||
@@ -59,0 +63,0 @@ |
@@ -17,2 +17,4 @@ import * as React from 'react'; | ||
width: number; | ||
offsetHeight: number; | ||
offsetWidth: number; | ||
} | ||
@@ -28,2 +30,4 @@ declare type RefNode = React.ReactInstance | HTMLElement | null; | ||
height: number; | ||
offsetHeight: number; | ||
offsetWidth: number; | ||
}; | ||
@@ -30,0 +34,0 @@ componentDidMount(): void; |
@@ -51,3 +51,5 @@ "use strict"; | ||
width: 0, | ||
height: 0 | ||
height: 0, | ||
offsetHeight: 0, | ||
offsetWidth: 0 | ||
}; | ||
@@ -74,6 +76,8 @@ | ||
if (_this.state.width !== fixedWidth || _this.state.height !== fixedHeight) { | ||
if (_this.state.width !== fixedWidth || _this.state.height !== fixedHeight || _this.state.offsetWidth !== offsetWidth || _this.state.offsetHeight !== offsetHeight) { | ||
var size = { | ||
width: fixedWidth, | ||
height: fixedHeight | ||
height: fixedHeight, | ||
offsetWidth: offsetWidth, | ||
offsetHeight: offsetHeight | ||
}; | ||
@@ -80,0 +84,0 @@ |
{ | ||
"name": "rc-resize-observer", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Resize observer for React", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
24636
484