@syncfusion/ej2-schedule 27.2.2 → 27.2.5

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.
@@ -10864,7 +10864,9 @@ class EventTooltip {
10864
10864
  removeClass([args.element], POPUP_OPEN);
10865
10865
  addClass([args.element], POPUP_CLOSE);
10866
10866
  }
10867
- this.parent.resetTemplates(['tooltipTemplate', 'headerTooltipTemplate']);
10867
+ if (!(this.parent.isReact && this.parent.eventWindow.dialogObject && this.parent.eventWindow.dialogObject.visible)) {
10868
+ this.parent.resetTemplates(['tooltipTemplate', 'headerTooltipTemplate']);
10869
+ }
10868
10870
  }
10869
10871
  setContent(content) {
10870
10872
  this.tooltipObj.setProperties({ content: content, windowCollision: true }, true);
@@ -23954,9 +23956,13 @@ class VerticalView extends ViewBase {
23954
23956
  }
23955
23957
  getTopFromDateTime(date) {
23956
23958
  const startHour = this.getStartEndHours(this.parent.activeViewOptions.startHour);
23959
+ const endHour = this.getStartEndHours(this.parent.activeViewOptions.endHour);
23957
23960
  const diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
23958
- return (diffInMinutes * this.getWorkCellHeight() * this.parent.activeViewOptions.timeScale.slotCount) /
23959
- this.parent.activeViewOptions.timeScale.interval;
23961
+ const hoursRange = getStartEndHours(resetTime(new Date(date.getTime())), startHour, endHour);
23962
+ const interval = this.parent.activeViewOptions.timeScale.slotCount !== 1 ?
23963
+ this.parent.activeViewOptions.timeScale.interval :
23964
+ (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
23965
+ return (diffInMinutes * this.getWorkCellHeight() * this.parent.activeViewOptions.timeScale.slotCount) / interval;
23960
23966
  }
23961
23967
  getWorkCellHeight() {
23962
23968
  return parseFloat(this.parent.getElementHeight(this.element.querySelector('.' + WORK_CELLS_CLASS)).toFixed(2));
@@ -26944,8 +26950,13 @@ class TimelineViews extends VerticalView {
26944
26950
  }
26945
26951
  getLeftFromDateTime(currentDateIndex, date) {
26946
26952
  const startHour = this.getStartHour();
26953
+ const endHour = this.getEndHour();
26947
26954
  let diffInDates = 0;
26948
26955
  let diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
26956
+ const hoursRange = getStartEndHours(resetTime(new Date(date.getTime())), startHour, endHour);
26957
+ const interval = this.parent.activeViewOptions.timeScale.slotCount !== 1 ?
26958
+ this.parent.activeViewOptions.timeScale.interval :
26959
+ (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
26949
26960
  if (!isNullOrUndefined(currentDateIndex)) {
26950
26961
  if (currentDateIndex[0] !== 0) {
26951
26962
  const index = this.parent.activeView.colLevels.findIndex((level) => level[0].type === 'dateHeader');
@@ -26963,7 +26974,7 @@ class TimelineViews extends VerticalView {
26963
26974
  }
26964
26975
  }
26965
26976
  return diffInDates + ((diffInMinutes * this.parent.getElementWidth(this.element.querySelector('.e-work-cells'))
26966
- * this.parent.activeViewOptions.timeScale.slotCount) / this.parent.activeViewOptions.timeScale.interval);
26977
+ * this.parent.activeViewOptions.timeScale.slotCount) / interval);
26967
26978
  }
26968
26979
  renderHeader() {
26969
26980
  const tr = createElement('tr');