@syncfusion/ej2-treegrid 21.2.9 → 21.2.10

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.
@@ -13184,7 +13184,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13184
13184
  }
13185
13185
  else {
13186
13186
  if (this.totalRecords == this.endIndex) {
13187
- this.translateY = scrollArgs.offset.top - (rowHeight - outBuffer);
13187
+ this.translateY = (this.totalRecords * rowHeight) - ((this.endIndex - this.startIndex) * rowHeight);
13188
13188
  }
13189
13189
  else {
13190
13190
  this.translateY = scrollArgs.offset.top;
@@ -13528,9 +13528,10 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13528
13528
  this.parent.grid.getContent().firstElementChild.scrollTop = 0;
13529
13529
  this.parent.grid.notify(virtualActionArgs, { setTop: true });
13530
13530
  }
13531
- if (requestType === 'save') {
13531
+ if (requestType === 'save' || (requestType === 'refresh' && this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
13532
13532
  startIndex = counts.startIndex + (counts.count - counts.endIndex);
13533
13533
  endIndex = counts.count;
13534
+ this.parent['isAddedFromGantt'] = false;
13534
13535
  }
13535
13536
  //if ((this.prevendIndex !== -1 && this.prevstartIndex !== -1) &&
13536
13537
  //this.prevendIndex === endIndex && this.prevstartIndex === startIndex) {