rc-virtual-list
Advanced tools
Comparing version 0.0.0-alpha.11 to 0.0.0-alpha.12
@@ -160,8 +160,13 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
startIndex = _this$state.startIndex, | ||
endIndex = _this$state.endIndex; // Record here since measure item height will get warning in `render` | ||
endIndex = _this$state.endIndex; | ||
var data = _this.props.data; // Record here since measure item height will get warning in `render` | ||
for (var index = startIndex; index <= endIndex; index += 1) { | ||
var eleKey = _this.getIndexKey(index); | ||
var item = data[index]; // Only collect exist item height | ||
_this.itemElementHeights[eleKey] = getNodeHeight(_this.itemElements[eleKey]); | ||
if (item) { | ||
var eleKey = _this.getItemKey(item); | ||
_this.itemElementHeights[eleKey] = getNodeHeight(_this.itemElements[eleKey]); | ||
} | ||
} | ||
@@ -168,0 +173,0 @@ }; |
@@ -175,8 +175,13 @@ "use strict"; | ||
startIndex = _this$state.startIndex, | ||
endIndex = _this$state.endIndex; // Record here since measure item height will get warning in `render` | ||
endIndex = _this$state.endIndex; | ||
var data = _this.props.data; // Record here since measure item height will get warning in `render` | ||
for (var index = startIndex; index <= endIndex; index += 1) { | ||
var eleKey = _this.getIndexKey(index); | ||
var item = data[index]; // Only collect exist item height | ||
_this.itemElementHeights[eleKey] = (0, _itemUtil.getNodeHeight)(_this.itemElements[eleKey]); | ||
if (item) { | ||
var eleKey = _this.getItemKey(item); | ||
_this.itemElementHeights[eleKey] = (0, _itemUtil.getNodeHeight)(_this.itemElements[eleKey]); | ||
} | ||
} | ||
@@ -183,0 +188,0 @@ }; |
{ | ||
"name": "rc-virtual-list", | ||
"version": "0.0.0-alpha.11", | ||
"version": "0.0.0-alpha.12", | ||
"description": "React Virtual List Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
87704
1990