@syncfusion/ej2-treegrid 21.2.5 → 21.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6543,7 +6543,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
6543
6543
  }
6544
6544
  }
6545
6545
  if (cRow.length && childRecord.expanded) {
6546
- this.collapseRemoteChild({ record: childRecord, rows: cRow }, true);
6546
+ this.collapseRemoteChild({ record: childRecord, rows: cRow }, false);
6547
6547
  }
6548
6548
  }
6549
6549
  }
@@ -12642,7 +12642,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
12642
12642
  this.startIndex = (this.startIndex - remains) < 0 ? 0 : (this.startIndex - remains);
12643
12643
  }
12644
12644
  if (currentViewData.length && (currentViewData[0][`${indexValue}`] >= this.parent.pageSettings.pageSize / 2) &&
12645
- ((currentViewData[0][`${indexValue}`] - this.startIndex) < (this.parent.pageSettings.pageSize / 2))) {
12645
+ ((currentViewData[0][`${indexValue}`] - this.startIndex) < (this.parent.pageSettings.pageSize / 2)) && this.parent.selectionModule.isRowSelected) {
12646
12646
  this.startIndex = currentViewData[0][`${indexValue}`] - (this.parent.pageSettings.pageSize / 2);
12647
12647
  this.endIndex = this.startIndex + this.parent.pageSettings.pageSize;
12648
12648
  }
@@ -12684,7 +12684,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
12684
12684
  this.startIndex = !isLastBlock ? lastIndex - this.parent.pageSettings.pageSize : nextSetResIndex;
12685
12685
  this.endIndex = lastIndex;
12686
12686
  if (currentViewData.length && this.startIndex > currentViewData[0][`${indexValue}`] &&
12687
- ((this.startIndex - currentViewData[0][`${indexValue}`]) < (this.parent.pageSettings.pageSize / 2))) {
12687
+ ((this.startIndex - currentViewData[0][`${indexValue}`]) < (this.parent.pageSettings.pageSize / 2)) && this.parent.selectionModule.isRowSelected) {
12688
12688
  this.startIndex = currentViewData[0][`${indexValue}`] + (this.parent.pageSettings.pageSize / 2);
12689
12689
  }
12690
12690
  if (scrollArgs.offset.top > (rowHeight * this.totalRecords)) {