Comparing version 8.2.3 to 8.3.0
@@ -18,7 +18,7 @@ "use strict"; | ||
var react_1 = __importDefault(require("react")); | ||
var enums_1 = require("../../enums"); | ||
var Rows_1 = __importDefault(require("../Rows/Rows")); | ||
var defaultOptions_1 = __importDefault(require("../../defaultOptions")); | ||
var enums_1 = require("../../enums"); | ||
var CellUtils_1 = require("../../Utils/CellUtils"); | ||
var Virtualize_1 = require("../../Utils/Virtualize"); | ||
var Rows_1 = __importDefault(require("../Rows/Rows")); | ||
var VirtualizedRows = function (props) { | ||
@@ -25,0 +25,0 @@ var _a; |
@@ -6,2 +6,4 @@ export declare class VirtualScrolling { | ||
tbodyHeight?: number; | ||
bottomInvisibleCount?: number; | ||
topInvisibleCount?: number; | ||
} |
{ | ||
"name": "ka-table", | ||
"version": "8.2.3", | ||
"version": "8.3.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "github:komarovalexander/ka-table", |
@@ -10,4 +10,4 @@ "use strict"; | ||
var virtualizedData = []; | ||
var _a = virtualScrolling.scrollTop, scrollTop = _a === void 0 ? 0 : _a; | ||
var _b = virtualScrolling.tbodyHeight, tbodyHeight = _b === void 0 ? 600 : _b; | ||
var _a = virtualScrolling.scrollTop, scrollTop = _a === void 0 ? 0 : _a, _b = virtualScrolling.bottomInvisibleCount, bottomInvisibleCount = _b === void 0 ? 5 : _b, _c = virtualScrolling.topInvisibleCount, topInvisibleCount = _c === void 0 ? 0 : _c; | ||
var _d = virtualScrolling.tbodyHeight, tbodyHeight = _d === void 0 ? 600 : _d; | ||
var beginHeight = 0; | ||
@@ -21,4 +21,5 @@ var endHeight = 0; | ||
: 40; | ||
if (acc >= scrollTop - itemHeight) { | ||
if (tbodyHeight >= -(itemHeight * 5)) { | ||
var topInvisibleHeight = (itemHeight * topInvisibleCount); | ||
if (acc >= scrollTop - itemHeight - topInvisibleHeight) { | ||
if (tbodyHeight + topInvisibleHeight >= -(itemHeight * bottomInvisibleCount)) { | ||
tbodyHeight = tbodyHeight - itemHeight; | ||
@@ -25,0 +26,0 @@ virtualizedData.push(value); |
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
386133
7932