@syncfusion/ej2-layouts 27.1.50 → 27.1.53

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.
@@ -4713,9 +4713,12 @@ let DashboardLayout = class DashboardLayout extends Component {
4713
4713
  this.checkCollision = [];
4714
4714
  }
4715
4715
  this.setPanelPosition(cell, panelProp.row, panelProp.col);
4716
+ this.addPanelCalled = false;
4716
4717
  this.updatePanelLayout(cell, panelProp);
4717
4718
  }
4718
- this.addPanelCalled = false;
4719
+ if (this.addPanelCalled) {
4720
+ this.addPanelCalled = false;
4721
+ }
4719
4722
  if (this.allowDragging &&
4720
4723
  this.mediaQuery ? !(this.checkMediaQuery()) : false) {
4721
4724
  this.enableDraggingContent([document.getElementById(panelProp.id)]);
@@ -5555,10 +5558,10 @@ let Timeline = class Timeline extends Component {
5555
5558
  for (let index = 0; index < this.items.length; index++) {
5556
5559
  const item = this.items[parseInt(index.toString(), 10)];
5557
5560
  if (!haveContent) {
5558
- haveContent = item.content.length > 0;
5561
+ (haveContent = item.content.length > 0 || !isNullOrUndefined(item.content));
5559
5562
  }
5560
5563
  if (!haveOppContent) {
5561
- haveOppContent = item.oppositeContent.length > 0;
5564
+ (haveOppContent = item.oppositeContent.length > 0 || !isNullOrUndefined(item.content));
5562
5565
  }
5563
5566
  }
5564
5567
  this.element.classList.remove('e-content-only', 'e-opposite-content-only');