@syncfusion/ej2-schedule 30.2.4 → 30.2.7

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.
@@ -14849,6 +14849,9 @@ class VirtualScroll {
14849
14849
  this.removeObsoleteRows(resWrapRows, currentGroupIndices);
14850
14850
  this.removeObsoleteRows(conWrapRows, currentGroupIndices);
14851
14851
  const resourceRows = this.parent.resourceBase.getContentRows(resCollection, true);
14852
+ if (this.parent.isReact) {
14853
+ this.parent.renderTemplates();
14854
+ }
14852
14855
  const contentRows = this.parent.activeView.getContentRows();
14853
14856
  const eventRows = this.parent.activeView.getEventRows(resCollection.length);
14854
14857
  for (let i = 0; i < newGroupIndices.length; i++) {
@@ -21785,6 +21788,7 @@ class Resize extends ActionBase {
21785
21788
  (Math.ceil((targetWidth - cloneWidth) / this.actionObj.cellWidth) * this.actionObj.cellWidth) : offsetLeft);
21786
21789
  }
21787
21790
  }
21791
+ width = Math.floor(width);
21788
21792
  styles.width = formatUnit(width);
21789
21793
  return styles;
21790
21794
  }
@@ -23784,6 +23788,8 @@ class ViewBase {
23784
23788
  */
23785
23789
  constructor(parent) {
23786
23790
  this.previousNextAction = 'Next';
23791
+ this.skipPersistenceSave = false;
23792
+ this.isScrolledBottom = false;
23787
23793
  this.parent = parent;
23788
23794
  }
23789
23795
  isTimelineView() {
@@ -24329,6 +24335,12 @@ class ViewBase {
24329
24335
  setPersistence() {
24330
24336
  if (this.parent.enablePersistence) {
24331
24337
  const contentWrap = this.element.querySelector('.e-content-wrap');
24338
+ if (this.parent.virtualScrollModule && this.isScrolledBottom) {
24339
+ this.isScrolledBottom = false;
24340
+ this.skipPersistenceSave = true;
24341
+ contentWrap.scrollTop = this.parent.scrollTop;
24342
+ this.skipPersistenceSave = false;
24343
+ }
24332
24344
  if (!isNullOrUndefined(contentWrap)) {
24333
24345
  this.parent.scrollLeft = contentWrap.scrollLeft;
24334
24346
  this.parent.scrollTop = contentWrap.scrollTop;
@@ -24339,6 +24351,7 @@ class ViewBase {
24339
24351
  if (this.parent.enablePersistence) {
24340
24352
  const conWrap = this.parent.element.querySelector('.e-content-wrap');
24341
24353
  if (!isNullOrUndefined(conWrap) && !isNullOrUndefined(this.parent.scrollLeft) && !isNullOrUndefined(this.parent.scrollTop)) {
24354
+ this.isScrolledBottom = conWrap.scrollHeight - conWrap.clientHeight < this.parent.scrollTop;
24342
24355
  conWrap.scrollTop = this.parent.scrollTop;
24343
24356
  conWrap.scrollLeft = this.parent.scrollLeft;
24344
24357
  }
@@ -25388,13 +25401,15 @@ class Month extends ViewBase {
25388
25401
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
25389
25402
  onCellClick(event) { }
25390
25403
  onContentScroll(e) {
25391
- this.parent.removeNewEventElement();
25392
- this.parent.notify(virtualScroll, e);
25393
- this.scrollTopPanel(e.target);
25394
- this.scrollLeftPanel(e.target);
25395
- this.parent.uiStateValues.top = e.target.scrollTop;
25396
- this.parent.uiStateValues.left = e.target.scrollLeft;
25397
- this.setPersistence();
25404
+ if (!this.skipPersistenceSave) {
25405
+ this.parent.removeNewEventElement();
25406
+ this.parent.notify(virtualScroll, e);
25407
+ this.scrollTopPanel(e.target);
25408
+ this.scrollLeftPanel(e.target);
25409
+ this.parent.uiStateValues.top = e.target.scrollTop;
25410
+ this.parent.uiStateValues.left = e.target.scrollLeft;
25411
+ this.setPersistence();
25412
+ }
25398
25413
  }
25399
25414
  scrollLeftPanel(target) {
25400
25415
  const leftPanel = this.getLeftPanelElement();