react-stickynode
Advanced tools
Comparing version 1.4.1 to 2.0.0
@@ -173,9 +173,5 @@ /** | ||
var _refs = this.refs; | ||
var outer = _refs.outer; | ||
var inner = _refs.inner; | ||
var outerRect = this.outerElement.getBoundingClientRect(); | ||
var innerRect = this.innerElement.getBoundingClientRect(); | ||
var outerRect = outer.getBoundingClientRect(); | ||
var innerRect = inner.getBoundingClientRect(); | ||
var width = outerRect.width || outerRect.right - outerRect.left; | ||
@@ -418,3 +414,4 @@ var height = innerRect.height || innerRect.bottom - innerRect.top;; | ||
value: function render() { | ||
var _classNames; | ||
var _classNames, | ||
_this2 = this; | ||
@@ -440,6 +437,10 @@ // TODO, "overflow: auto" prevents collapse, need a good way to get children height | ||
'div', | ||
{ ref: 'outer', className: outerClasses, style: outerStyle }, | ||
{ ref: function (outer) { | ||
_this2.outerElement = outer; | ||
}, className: outerClasses, style: outerStyle }, | ||
_react2['default'].createElement( | ||
'div', | ||
{ ref: 'inner', className: 'sticky-inner-wrapper', style: innerStyle }, | ||
{ ref: function (inner) { | ||
_this2.innerElement = inner; | ||
}, className: 'sticky-inner-wrapper', style: innerStyle }, | ||
this.props.children | ||
@@ -446,0 +447,0 @@ ) |
{ | ||
"name": "react-stickynode", | ||
"version": "1.4.1", | ||
"version": "2.0.0", | ||
"description": "A performant and comprehensive React sticky", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
41516
750