@pepperi-addons/ngx-lib 0.4.2-beta.88 → 0.4.2-beta.90

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.
@@ -1596,9 +1596,14 @@ class PepListComponent {
1596
1596
  }
1597
1597
  setColumnsWidth(widthToSet, wait = false) {
1598
1598
  this.renderer.setStyle(this.hostElement.nativeElement, 'width', widthToSet);
1599
+ // Do this only after UI is change cause the property isTable is Input and can refresh after this thread.
1600
+ if (this.virtualScroller) {
1601
+ this.renderer.setStyle(this.virtualScroller.contentElementRef.nativeElement, 'width', widthToSet === 'inherit' ? '100%' : widthToSet);
1602
+ }
1599
1603
  // Wait for delay to update properties in the last chosen and not this.
1600
1604
  // await new Promise((resolve) => setTimeout(resolve, 0));
1601
1605
  setTimeout(() => {
1606
+ this.renderer.setStyle(this.hostElement.nativeElement, 'width', widthToSet);
1602
1607
  // Do this only after UI is change cause the property isTable is Input and can refresh after this thread.
1603
1608
  if (this.virtualScroller) {
1604
1609
  this.renderer.setStyle(this.virtualScroller.contentElementRef.nativeElement, 'width', widthToSet === 'inherit' ? '100%' : widthToSet);