@syncfusion/ej2-schedule 31.1.20 → 31.1.21

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.
@@ -14550,7 +14550,7 @@ class VirtualScroll {
14550
14550
  virtual.style.height = (conTable.offsetHeight + (this.parent.resourceBase.expandedResources.length - (this.renderedLength)) *
14551
14551
  conTable.offsetHeight / this.renderedLength) + 'px';
14552
14552
  const conWrap = this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
14553
- if ((conWrap.scrollHeight - conWrap.scrollTop) < conWrap.offsetHeight * this.bufferCount) {
14553
+ if (this.bufferCount === 3 && (conWrap.scrollHeight - conWrap.scrollTop) < conWrap.offsetHeight * this.bufferCount) {
14554
14554
  virtual.style.height = parseInt(virtual.style.height, 10) + (conWrap.offsetHeight * this.bufferCount) + 'px';
14555
14555
  }
14556
14556
  }
@@ -14734,7 +14734,7 @@ class VirtualScroll {
14734
14734
  index = (index > firstTDIndex) ? firstTDIndex - this.bufferCount : index;
14735
14735
  }
14736
14736
  index = (index > 0) ? index : 0;
14737
- const prevSetCollection = this.getBufferCollection(index, index + this.renderedLength);
14737
+ let prevSetCollection = this.getBufferCollection(index, index + this.renderedLength);
14738
14738
  this.parent.resourceBase.renderedResources = prevSetCollection;
14739
14739
  if (firstTDIndex === 0) {
14740
14740
  this.translateY = conWrap.scrollTop;
@@ -14744,6 +14744,10 @@ class VirtualScroll {
14744
14744
  height = (height > 0) ? height : this.itemSize;
14745
14745
  this.translateY = (conWrap.scrollTop - (this.bufferCount * height) > 0) ?
14746
14746
  conWrap.scrollTop - (this.bufferCount * height) : 0;
14747
+ if (this.parent.rowAutoHeight && this.translateY === 0 && index !== 0) {
14748
+ prevSetCollection = this.getBufferCollection(0, this.renderedLength);
14749
+ this.parent.resourceBase.renderedResources = prevSetCollection;
14750
+ }
14747
14751
  }
14748
14752
  return prevSetCollection;
14749
14753
  }