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

react-sticky-table

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-sticky-table - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

13

dist/index.js

@@ -314,3 +314,10 @@ (function (global, factory) {

value: function setScrollBarDims() {
var width = this.getNodeSize(this.dom.bodyTable.firstChild).width;
this.dom.xScrollbar.firstChild.style.width = width + 'px';
this.xScrollSize = this.dom.xScrollbar.offsetHeight - this.dom.xScrollbar.clientHeight;
var height = this.getNodeSize(this.dom.bodyTable).height + this.xScrollSize - this.dom.stickyHeader.offsetHeight;
this.dom.yScrollbar.firstChild.style.height = height + 'px';
this.yScrollSize = this.dom.yScrollbar.offsetWidth - this.dom.yScrollbar.clientWidth;

@@ -322,8 +329,2 @@

var width = this.getNodeSize(this.dom.bodyTable.firstChild).width;
this.dom.xScrollbar.firstChild.style.width = width + 'px';
var height = this.getNodeSize(this.dom.bodyTable).height + this.xScrollSize - this.dom.stickyHeader.offsetHeight;
this.dom.yScrollbar.firstChild.style.height = height + 'px';
if (this.xScrollSize) this.dom.xScrollbar.style.height = this.xScrollSize + 1 + 'px';

@@ -330,0 +331,0 @@ if (this.yScrollSize) this.dom.yScrollbar.style.width = this.yScrollSize + 1 + 'px';

{
"name": "react-sticky-table",
"version": "2.0.0",
"version": "2.0.1",
"main": "index.js",

@@ -5,0 +5,0 @@ "module": "./index.js",

@@ -260,3 +260,10 @@ import React, { PureComponent } from 'react';

setScrollBarDims() {
var width = this.getNodeSize(this.dom.bodyTable.firstChild).width;
this.dom.xScrollbar.firstChild.style.width = width + 'px';
this.xScrollSize = this.dom.xScrollbar.offsetHeight - this.dom.xScrollbar.clientHeight;
var height = this.getNodeSize(this.dom.bodyTable).height + this.xScrollSize - this.dom.stickyHeader.offsetHeight;
this.dom.yScrollbar.firstChild.style.height = height + 'px';
this.yScrollSize = this.dom.yScrollbar.offsetWidth - this.dom.yScrollbar.clientWidth;

@@ -268,8 +275,2 @@

var width = this.getNodeSize(this.dom.bodyTable.firstChild).width;
this.dom.xScrollbar.firstChild.style.width = width + 'px';
var height = this.getNodeSize(this.dom.bodyTable).height + this.xScrollSize - this.dom.stickyHeader.offsetHeight;
this.dom.yScrollbar.firstChild.style.height = height + 'px';
if (this.xScrollSize) this.dom.xScrollbar.style.height = this.xScrollSize + 1 + 'px';

@@ -276,0 +277,0 @@ if (this.yScrollSize) this.dom.yScrollbar.style.width = this.yScrollSize + 1 + 'px';

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