@syncfusion/ej2-schedule 26.2.7 → 26.2.12

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.
@@ -13805,6 +13805,7 @@ class VirtualScroll {
13805
13805
  this.averageRowHeight = 0;
13806
13806
  this.startIndex = 0;
13807
13807
  this.existingDataCollection = [];
13808
+ this.enableTransition = true;
13808
13809
  this.parent = parent;
13809
13810
  this.addEventListener();
13810
13811
  }
@@ -13894,6 +13895,10 @@ class VirtualScroll {
13894
13895
  const resWrap = this.parent.element.querySelector('.' + RESOURCE_COLUMN_WRAP_CLASS);
13895
13896
  const conWrap = this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
13896
13897
  const eventWrap = this.parent.element.querySelector('.' + EVENT_TABLE_CLASS);
13898
+ if (!this.parent.rowAutoHeight) {
13899
+ this.enableTransition = false;
13900
+ removeClass([conWrap, resWrap], 'e-transition');
13901
+ }
13897
13902
  let firstTDIndex = parseInt(resWrap.querySelector('tbody td').getAttribute('data-group-index'), 10);
13898
13903
  const endIndex = (firstTDIndex + this.renderedLength);
13899
13904
  firstTDIndex = (endIndex > this.parent.resourceBase.expandedResources.length) ?
@@ -17937,6 +17942,12 @@ let Schedule = class Schedule extends Component {
17937
17942
  this.virtualScrollModule.isRemoteRefresh = false;
17938
17943
  }
17939
17944
  this.refreshEvents(isRemoteRefresh);
17945
+ if (this.virtualScrollModule && !this.virtualScrollModule.enableTransition) {
17946
+ const resWrap = this.element.querySelector('.' + RESOURCE_COLUMN_WRAP_CLASS);
17947
+ const conWrap = this.element.querySelector('.' + CONTENT_WRAP_CLASS);
17948
+ this.virtualScrollModule.enableTransition = true;
17949
+ addClass([conWrap, resWrap], 'e-transition');
17950
+ }
17940
17951
  }
17941
17952
  else {
17942
17953
  this.notify(contentReady, {});
@@ -21527,7 +21538,7 @@ class DragAndDrop extends ActionBase {
21527
21538
  }
21528
21539
  let top = parseInt(e.top, 10);
21529
21540
  top = top < 0 ? 0 : top;
21530
- topValue = formatUnit(Math.ceil(top / cellHeight) * cellHeight);
21541
+ topValue = formatUnit(Math.floor(top / cellHeight) * cellHeight);
21531
21542
  const scrollHeight = this.parent.element.querySelector('.e-content-wrap').scrollHeight;
21532
21543
  const cloneBottom = parseInt(topValue, 10) + this.actionObj.clone.offsetHeight;
21533
21544
  if (cloneBottom > scrollHeight) {