fast-table
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -149,3 +149,3 @@ 'use strict'; | ||
'div', | ||
{style: {height: footerHeight, color: 'inherit'}}, | ||
{style: {position: 'absolute', bottom: 0, height: footerHeight, color: 'inherit'}}, | ||
footer(_this.props.dataSource) | ||
@@ -152,0 +152,0 @@ ) : null; |
@@ -196,10 +196,2 @@ 'use strict'; | ||
}, { | ||
key: 'componentDidUpdate', | ||
value: function componentDidUpdate() { | ||
this.handleWindowResize(); | ||
if (!this.resizeEvent) { | ||
this.resizeEvent = (0, _Utils.addEventListener)(window, 'resize', this.debouncedWindowResize); | ||
} | ||
} | ||
}, { | ||
key: 'render', | ||
@@ -249,3 +241,3 @@ value: function render() { | ||
bodyHeight: bodyHeight | ||
}, _this2.resetRenderInterval(0, _this2['bodyTable'].clientHeight, bodyHeight, fixedColumnsBodyRowsHeight))); | ||
}, _this2.resetRenderInterval(_this2.lastScrollTop || _this2['bodyTable'].scrollTop, _this2['bodyTable'].clientHeight, bodyHeight, fixedColumnsBodyRowsHeight))); | ||
}; | ||
@@ -255,3 +247,3 @@ | ||
var target = e.target; | ||
if (_this2.lastScrollTop !== target.scrollTop && target !== _this2['headTabl']) { | ||
if (_this2.lastScrollTop !== target.scrollTop && target !== _this2['headTable']) { | ||
var result = _this2.resetRenderInterval(target.scrollTop, target.clientHeight, target.scrollHeight); | ||
@@ -258,0 +250,0 @@ _this2.store.setState(result); |
{ | ||
"name": "fast-table", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "react table fast", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
64353
1903