fast-table
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -207,3 +207,3 @@ 'use strict'; | ||
this.rightWidth = 0; | ||
var average = wrapperWidth < baseWidth ? 0 : (0, _floor2.default)((wrapperWidth - baseWidth) / len); | ||
var average = (0, _floor2.default)((wrapperWidth - baseWidth) / len); | ||
var update = function update(columns) { | ||
@@ -226,5 +226,2 @@ return columns.map(function (column) { | ||
} | ||
if (newColumn._width < newColumn._minWidth) { | ||
newColumn._width = newColumn._minWidth; | ||
} | ||
if (newColumn._currentRow === 0) { | ||
@@ -231,0 +228,0 @@ _this10.width += newColumn._width; |
@@ -419,3 +419,3 @@ 'use strict'; | ||
this.handleWindowResize(); | ||
this.resizeEvent = (0, _Utils.addEventListener)(document.body, 'resize', this.debouncedWindowResize); | ||
this.resizeEvent = (0, _Utils.addEventListener)(window, 'resize', this.debouncedWindowResize); | ||
} | ||
@@ -422,0 +422,0 @@ }, { |
{ | ||
"name": "fast-table", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "react table fast", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -121,3 +121,3 @@ import React from 'react'; | ||
this.rightWidth = 0; | ||
const average = wrapperWidth < baseWidth ? 0 : floor((wrapperWidth - baseWidth) / len); | ||
const average = floor((wrapperWidth - baseWidth) / len); | ||
const update = (columns) => { | ||
@@ -140,5 +140,2 @@ return columns.map(column => { | ||
} | ||
if (newColumn._width < newColumn._minWidth) { | ||
newColumn._width = newColumn._minWidth; | ||
} | ||
if (newColumn._currentRow === 0) { | ||
@@ -145,0 +142,0 @@ this.width += newColumn._width; |
@@ -72,3 +72,3 @@ import React from 'react'; | ||
this.handleWindowResize(); | ||
this.resizeEvent = addEventListener(document.body, 'resize', this.debouncedWindowResize); | ||
this.resizeEvent = addEventListener(window, 'resize', this.debouncedWindowResize); | ||
} | ||
@@ -75,0 +75,0 @@ |
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
171959
4730