fast-table
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -234,2 +234,6 @@ 'use strict'; | ||
var hasScroll = _this2['bodyTable'].getBoundingClientRect().height < bodyHeight; | ||
var result = {renderStart: 0, renderEnd: dataSource.length - 1}; | ||
if (hasScroll) { | ||
result = _this2.resetRenderInterval(_this2.lastScrollTop || _this2['bodyTable'].scrollTop, _this2['bodyTable'].clientHeight, bodyHeight, fixedColumnsBodyRowsHeight); | ||
} | ||
_this2.store.setState(_extends({ | ||
@@ -240,3 +244,3 @@ hasScroll: hasScroll, | ||
fixedColumnsBodyRowsHeight: fixedColumnsBodyRowsHeight | ||
}, _this2.resetRenderInterval(_this2.lastScrollTop || _this2['bodyTable'].scrollTop, _this2['bodyTable'].clientHeight, bodyHeight, fixedColumnsBodyRowsHeight))); | ||
}, result)); | ||
}; | ||
@@ -243,0 +247,0 @@ |
{ | ||
"name": "fast-table", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "react table fast", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
65861
1942