@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.
@@ -12758,7 +12758,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
12758
12758
  }
12759
12759
  else {
12760
12760
  if (this.totalRecords == this.endIndex) {
12761
- this.translateY = scrollArgs.offset.top - (rowHeight - outBuffer);
12761
+ this.translateY = (this.totalRecords * rowHeight) - ((this.endIndex - this.startIndex) * rowHeight);
12762
12762
  }
12763
12763
  else {
12764
12764
  this.translateY = scrollArgs.offset.top;
@@ -13083,9 +13083,10 @@ class VirtualScroll$1 {
13083
13083
  this.parent.grid.getContent().firstElementChild.scrollTop = 0;
13084
13084
  this.parent.grid.notify(virtualActionArgs, { setTop: true });
13085
13085
  }
13086
- if (requestType === 'save') {
13086
+ if (requestType === 'save' || (requestType === 'refresh' && this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
13087
13087
  startIndex = counts.startIndex + (counts.count - counts.endIndex);
13088
13088
  endIndex = counts.count;
13089
+ this.parent['isAddedFromGantt'] = false;
13089
13090
  }
13090
13091
  //if ((this.prevendIndex !== -1 && this.prevstartIndex !== -1) &&
13091
13092
  //this.prevendIndex === endIndex && this.prevstartIndex === startIndex) {