@syncfusion/ej2-schedule 32.1.19 → 32.1.22

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.
@@ -176,14 +176,18 @@ var ViewBase = /** @class */ (function () {
176
176
  }
177
177
  };
178
178
  ViewBase.prototype.getHeaderBarHeight = function () {
179
- var headerBarHeight = 2;
179
+ var computedStyle = getComputedStyle(this.parent.element);
180
+ var borderTop = parseFloat(computedStyle.borderTopWidth) || 1;
181
+ var borderBottom = parseFloat(computedStyle.borderBottomWidth) || 1;
182
+ var border = Math.round(borderTop + borderBottom);
183
+ var headerBarHeight = border;
180
184
  if (this.parent.headerModule) {
181
185
  headerBarHeight += util.getOuterHeight(this.parent.headerModule.getHeaderElement());
182
186
  }
183
187
  if (this.parent.uiStateValues.isGroupAdaptive) {
184
188
  var resHeader = this.parent.element.querySelector('.' + cls.RESOURCE_HEADER_TOOLBAR);
185
189
  if (resHeader) {
186
- headerBarHeight += resHeader.offsetHeight;
190
+ headerBarHeight += util.getOuterHeight(resHeader);
187
191
  }
188
192
  }
189
193
  return headerBarHeight;
@@ -471,7 +475,7 @@ var ViewBase = /** @class */ (function () {
471
475
  ViewBase.prototype.setResourceHeaderContent = function (tdElement, tdData, className) {
472
476
  if (className === void 0) { className = cls.TEXT_ELLIPSIS; }
473
477
  if (this.parent.activeViewOptions.resourceHeaderTemplate) {
474
- var data = { resource: tdData.resource, resourceData: tdData.resourceData };
478
+ var data = { resource: tdData.resource, resourceData: tdData.resourceData, date: tdData.date };
475
479
  var scheduleId = this.parent.element.id + '_';
476
480
  var viewName = this.parent.activeViewOptions.resourceHeaderTemplateName;
477
481
  var templateId = scheduleId + viewName + 'resourceHeaderTemplate';