@pepperi-addons/ngx-lib 0.4.0-angular14.52 → 0.4.0-angular14.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.
@@ -1472,9 +1472,12 @@ class PepListComponent {
1472
1472
  }
1473
1473
  }
1474
1474
  setContainerWidth() {
1475
+ if (!this.hostElement.nativeElement.parentElement) {
1476
+ return;
1477
+ }
1475
1478
  const selectionCheckBoxWidth = this.selectionTypeForActions === 'multi' ? 44 : 0;
1476
1479
  const rowHeight = 40; // the table row height (2.5rem * 16font-size).
1477
- const style = window.getComputedStyle(this.hostElement.nativeElement.parentElement);
1480
+ const style = getComputedStyle(this.hostElement.nativeElement.parentElement);
1478
1481
  // The container-fluid class padding left + right + border
1479
1482
  const containerFluidSpacing = parseInt(style.paddingLeft, 10) + parseInt(style.paddingRight, 10);
1480
1483
  const parentContainer = this.hostElement.nativeElement.parentElement.parentElement > 0