rc-virtual-list
Advanced tools
Comparing version 3.10.6 to 3.10.7
@@ -33,2 +33,3 @@ import * as React from 'react'; | ||
* `scrollWidth` will be used as the real width instead of container width. | ||
* When set, `virtual` will always be enabled. | ||
*/ | ||
@@ -35,0 +36,0 @@ scrollWidth?: number; |
@@ -56,3 +56,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
var useVirtual = !!(virtual !== false && height && itemHeight); | ||
var inVirtual = useVirtual && data && itemHeight * data.length > height; | ||
var inVirtual = useVirtual && data && (itemHeight * data.length > height || !!scrollWidth); | ||
var isRTL = direction === 'rtl'; | ||
@@ -59,0 +59,0 @@ var mergedClassName = classNames(prefixCls, _defineProperty({}, "".concat(prefixCls, "-rtl"), isRTL), className); |
@@ -33,2 +33,3 @@ import * as React from 'react'; | ||
* `scrollWidth` will be used as the real width instead of container width. | ||
* When set, `virtual` will always be enabled. | ||
*/ | ||
@@ -35,0 +36,0 @@ scrollWidth?: number; |
@@ -64,3 +64,3 @@ "use strict"; | ||
var useVirtual = !!(virtual !== false && height && itemHeight); | ||
var inVirtual = useVirtual && data && itemHeight * data.length > height; | ||
var inVirtual = useVirtual && data && (itemHeight * data.length > height || !!scrollWidth); | ||
var isRTL = direction === 'rtl'; | ||
@@ -67,0 +67,0 @@ var mergedClassName = (0, _classnames.default)(prefixCls, (0, _defineProperty2.default)({}, "".concat(prefixCls, "-rtl"), isRTL), className); |
{ | ||
"name": "rc-virtual-list", | ||
"version": "3.10.6", | ||
"version": "3.10.7", | ||
"description": "React Virtual List Component", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
120697
3050