parent
ea707b2c08
commit
f530c8301c
|
@ -61,9 +61,7 @@ export function virtualScrollDriver(props, oldState, getRenderedItemHeight)
|
|||
lastItemSize = getRenderedItemHeight(props.totalItems - 1 - lastVisibleItems);
|
||||
if (!lastItemSize)
|
||||
{
|
||||
// Some required items in the end are missing, complain about it loudly, but don't break scrolling
|
||||
// eslint-disable-next-line
|
||||
console.error('dynamic-virtual-scroll: item #'+(props.totalItems - 1 - lastVisibleItems)+' is missing from render, please fix your code');
|
||||
// Some required items in the end are missing
|
||||
lastItemSize = 0;
|
||||
}
|
||||
lastItemsHeight += lastItemSize < props.minRowHeight ? props.minRowHeight : lastItemSize;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "dynamic-virtual-scroll",
|
||||
"version": "1.0.14",
|
||||
"version": "1.0.15",
|
||||
"author": {
|
||||
"name": "Vitaliy Filippov",
|
||||
"email": "vitalif@yourcmc.ru",
|
||||
|
|
Loading…
Reference in New Issue