react-sticky-table
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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'; |
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
64101