@syncfusion/ej2-treegrid 27.1.56 → 27.1.57

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.
@@ -4723,9 +4723,6 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4723
4723
  if (_this.pageSettings.pageSizeMode === 'Root') {
4724
4724
  _this.grid.selectionModule['totalRecordsCount'] = _this.grid.currentViewData.length;
4725
4725
  }
4726
- if (_this.enableVirtualization && args.rowIndex === _this.selectedRowIndex && !_this.enablePersistence) {
4727
- args.cancel = true;
4728
- }
4729
4726
  if (!isNullOrUndefined(_this.selectionSettings) && !_this.selectionSettings.persistSelection &&
4730
4727
  _this.enableVirtualization && args.rowIndex === _this.selectedRowIndex && _this.isGantt) {
4731
4728
  args.cancel = false;
@@ -13703,7 +13700,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13703
13700
  content = this.parent.getContent().querySelector('.e-content');
13704
13701
  }
13705
13702
  var scrollHeight = outBuffer * rowHeight;
13706
- var upScroll = (scrollArgs.offset.top - this.translateY) <= 0;
13703
+ var upScroll = (scrollArgs.offset.top - this.translateY) < 0;
13707
13704
  var downScroll = Math.ceil(scrollArgs.offset.top - this.translateY) + rowHeight >= scrollHeight;
13708
13705
  var selectedRowIndex = 'selectedRowIndex';
13709
13706
  var currentViewData = this.parent.currentViewData;
@@ -13744,8 +13741,9 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13744
13741
  firsttdinx = +attr; // this.parent.getContent().querySelector('.e-content tr').getAttribute('data-rowindex');
13745
13742
  }
13746
13743
  if (firsttdinx === 0) {
13747
- this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
13748
- scrollArgs.offset.top - (outBuffer * this.parent.getRowHeight()) + rowHeight : 0;
13744
+ this.translateY = !isNullOrUndefined(this.endIndex) ?
13745
+ (this.endIndex - this.parent.pageSettings.pageSize) * (this.parent.rowHeight ?
13746
+ this.parent.rowHeight : this.parent.getRowHeight()) : 0;
13749
13747
  }
13750
13748
  else if (this.parent.getFrozenColumns() > 0) {
13751
13749
  scrollArgs.offset.top = scrollArgs.offset.top + 80;