@syncfusion/ej2-schedule 26.2.5 → 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.
@@ -7181,7 +7181,10 @@ class VerticalEvent extends EventBase {
7181
7181
  const field = this.parent.eventFields;
7182
7182
  const schedule = getStartEndHours(currentDate, this.startHour, this.endHour);
7183
7183
  const event = extend({}, record, null, true);
7184
- event.isSpanned = { isBottom: false, isTop: false };
7184
+ event.isSpanned = {
7185
+ isBottom: false, isTop: false,
7186
+ isSameDuration: event[field.startTime].getTime() === event[field.endTime].getTime()
7187
+ };
7185
7188
  if (record[field.startTime].getTime() < schedule.startHour.getTime()) {
7186
7189
  event[field.startTime] = schedule.startHour;
7187
7190
  event.isSpanned.isTop = true;
@@ -7294,7 +7297,7 @@ class VerticalEvent extends EventBase {
7294
7297
  return;
7295
7298
  }
7296
7299
  if (eStart <= eEnd && isValidEvent && this.isWorkDayAvailable(resource, eStart)) {
7297
- const appHeight = this.getHeight(eStart, eEnd);
7300
+ const appHeight = record.isSpanned.isSameDuration ? this.cellHeight : this.getHeight(eStart, eEnd);
7298
7301
  if (eStart.getTime() >= schedule.startHour.getTime()) {
7299
7302
  topValue = this.getTopValue(eStart, dayIndex, resource);
7300
7303
  }
@@ -27946,6 +27949,7 @@ class Print {
27946
27949
  Schedule.Inject(Day, Week, WorkWeek, Month, Agenda, MonthAgenda, TimelineViews, TimelineMonth, Year, TimelineYear);
27947
27950
  this.printInstance = new Schedule(this.getPrintScheduleModel(printOptions));
27948
27951
  this.printInstance.isPrinting = true;
27952
+ this.printInstance.registeredTemplate = this.parent.registeredTemplate;
27949
27953
  this.printInstance.root = this.parent.root ? this.parent.root : this.parent;
27950
27954
  this.printInstance.appendTo(element);
27951
27955
  this.printInstance.on(print, this.contentReady, this);