@syncfusion/ej2-schedule 26.2.4 → 26.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.
@@ -7328,7 +7328,10 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7328
7328
  var field = this.parent.eventFields;
7329
7329
  var schedule = getStartEndHours(currentDate, this.startHour, this.endHour);
7330
7330
  var event = extend({}, record, null, true);
7331
- event.isSpanned = { isBottom: false, isTop: false };
7331
+ event.isSpanned = {
7332
+ isBottom: false, isTop: false,
7333
+ isSameDuration: event[field.startTime].getTime() === event[field.endTime].getTime()
7334
+ };
7332
7335
  if (record[field.startTime].getTime() < schedule.startHour.getTime()) {
7333
7336
  event[field.startTime] = schedule.startHour;
7334
7337
  event.isSpanned.isTop = true;
@@ -7446,7 +7449,7 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7446
7449
  return;
7447
7450
  }
7448
7451
  if (eStart <= eEnd && isValidEvent && this.isWorkDayAvailable(resource, eStart)) {
7449
- var appHeight = this.getHeight(eStart, eEnd);
7452
+ var appHeight = record.isSpanned.isSameDuration ? this.cellHeight : this.getHeight(eStart, eEnd);
7450
7453
  if (eStart.getTime() >= schedule.startHour.getTime()) {
7451
7454
  topValue = this.getTopValue(eStart, dayIndex, resource);
7452
7455
  }
@@ -29010,6 +29013,7 @@ var Print = /** @__PURE__ @class */ (function () {
29010
29013
  Schedule.Inject(Day, Week, WorkWeek, Month, Agenda, MonthAgenda, TimelineViews, TimelineMonth, Year, TimelineYear);
29011
29014
  this.printInstance = new Schedule(this.getPrintScheduleModel(printOptions));
29012
29015
  this.printInstance.isPrinting = true;
29016
+ this.printInstance.registeredTemplate = this.parent.registeredTemplate;
29013
29017
  this.printInstance.root = this.parent.root ? this.parent.root : this.parent;
29014
29018
  this.printInstance.appendTo(element);
29015
29019
  this.printInstance.on(print, this.contentReady, this);