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

react-stickynode

Package Overview
Dependencies
Maintainers
5
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-stickynode - npm Package Compare versions

Comparing version 1.4.1 to 2.0.0

19

dist/Sticky.js

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

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