@syncfusion/ej2-lists
Advanced tools
Comparing version 27.2.3 to 27.2.5
/*! | ||
* filename: index.d.ts | ||
* version : 27.2.3 | ||
* version : 27.2.5 | ||
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-lists@*", | ||
"_id": "@syncfusion/ej2-lists@27.2.2", | ||
"_id": "@syncfusion/ej2-lists@27.2.3", | ||
"_inBundle": false, | ||
"_integrity": "sha512-SqmnNJN9qrq9W/ujyQOZaI7JCRM09TII4Fe/bXqSSxKDJVoea22g8mafQWGDwHeVgIA4xItqa16wgCczZB6Vmw==", | ||
"_integrity": "sha512-LqJvsB/kdszq5GBO4gWrXb88GRyBoh/LdeBEiEOLWsln0X0C8B7Uv1fe1G9CdQbKF9lNXV/XIPHx8duEMA78xQ==", | ||
"_location": "/@syncfusion/ej2-lists", | ||
@@ -38,4 +38,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-27.2.2.tgz", | ||
"_shasum": "fe51ac8aa39a9e6b1fa7b9522375d28693b3745c", | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-27.2.3.tgz", | ||
"_shasum": "8d5c2a1383545dfe7f592d337a8a2459aa345e49", | ||
"_spec": "@syncfusion/ej2-lists@*", | ||
@@ -48,4 +48,4 @@ "_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~27.2.2", | ||
"@syncfusion/ej2-buttons": "~27.2.2", | ||
"@syncfusion/ej2-base": "~27.2.5", | ||
"@syncfusion/ej2-buttons": "~27.2.4", | ||
"@syncfusion/ej2-data": "~27.2.2", | ||
@@ -92,5 +92,5 @@ "@syncfusion/ej2-popups": "~27.2.2" | ||
"typings": "index.d.ts", | ||
"version": "27.2.3", | ||
"version": "27.2.5", | ||
"sideEffects": false, | ||
"homepage": "https://www.syncfusion.com/javascript-ui-controls" | ||
} |
@@ -35,5 +35,6 @@ import { classNames } from './list-view'; | ||
this.wireScrollEvent(false); | ||
var curViewDS = this.listViewInstance.curViewDS; | ||
var isRendered = this.listViewInstance.isRendered; | ||
var firstIndex = isRendered && !isNullOrUndefined(this.uiFirstIndex) ? this.uiFirstIndex : 0; | ||
var curViewDS = this.listViewInstance.curViewDS; | ||
var firstIndex = isRendered && !isNullOrUndefined(this.uiFirstIndex) && this.uiLastIndex <= Object.keys(curViewDS).length | ||
? this.uiFirstIndex : 0; | ||
var firstDs = curViewDS.slice(firstIndex, firstIndex + 1); | ||
@@ -47,3 +48,4 @@ this.listViewInstance.ulElement = this.listViewInstance.curUL = ListBase.createList(this.listViewInstance.createElement, firstDs, this.listViewInstance.listBaseOption, null, this.listViewInstance); | ||
this.updateDOMItemCount(); | ||
var lastIndex = isRendered && !isNullOrUndefined(this.uiLastIndex) ? this.uiLastIndex : this.domItemCount - 1; | ||
var lastIndex = isRendered && !isNullOrUndefined(this.uiLastIndex) && this.listDiff !== 0 | ||
? this.uiLastIndex : this.domItemCount - 1; | ||
this.uiFirstIndex = firstIndex; | ||
@@ -64,3 +66,3 @@ this.uiLastIndex = lastIndex; | ||
this.bottomElementHeight = isRendered ? (this.totalHeight - this.topElementHeight) : this.totalHeight; | ||
this.listDiff = isRendered ? this.listDiff : 0; | ||
this.listDiff = isRendered && Object.keys(curViewDS).length !== this.domItemCount ? this.listDiff : 0; | ||
if (isRendered) { | ||
@@ -67,0 +69,0 @@ this.listViewInstance.element.scrollTop = this.listViewInstance.previousScrollTop; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
3290223
41082