@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.
@@ -14902,7 +14902,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
14902
14902
  virtual.style.height = (conTable.offsetHeight + (this.parent.resourceBase.expandedResources.length - (this.renderedLength)) *
14903
14903
  conTable.offsetHeight / this.renderedLength) + 'px';
14904
14904
  var conWrap = this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
14905
- if ((conWrap.scrollHeight - conWrap.scrollTop) < conWrap.offsetHeight * this.bufferCount) {
14905
+ if (this.bufferCount === 3 && (conWrap.scrollHeight - conWrap.scrollTop) < conWrap.offsetHeight * this.bufferCount) {
14906
14906
  virtual.style.height = parseInt(virtual.style.height, 10) + (conWrap.offsetHeight * this.bufferCount) + 'px';
14907
14907
  }
14908
14908
  }
@@ -15099,6 +15099,10 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
15099
15099
  height = (height > 0) ? height : this.itemSize;
15100
15100
  this.translateY = (conWrap.scrollTop - (this.bufferCount * height) > 0) ?
15101
15101
  conWrap.scrollTop - (this.bufferCount * height) : 0;
15102
+ if (this.parent.rowAutoHeight && this.translateY === 0 && index !== 0) {
15103
+ prevSetCollection = this.getBufferCollection(0, this.renderedLength);
15104
+ this.parent.resourceBase.renderedResources = prevSetCollection;
15105
+ }
15102
15106
  }
15103
15107
  return prevSetCollection;
15104
15108
  };