@pepperi-addons/ngx-lib 0.4.2-beta.94 → 0.4.2-beta.95

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.
@@ -1592,14 +1592,22 @@ class PepListComponent {
1592
1592
  }
1593
1593
  return res;
1594
1594
  }
1595
- setColumnsWidth(widthToSet, wait = false) {
1595
+ setVirtualScrollWidth(widthToSet) {
1596
+ if (this.virtualScroller) {
1597
+ this.renderer.setStyle(this.virtualScroller.contentElementRef.nativeElement, 'width', widthToSet === 'inherit' ? '100%' : widthToSet);
1598
+ }
1599
+ }
1600
+ setColumnsWidth(widthToSet) {
1596
1601
  this.renderer.setStyle(this.hostElement.nativeElement, 'width', widthToSet);
1597
- // Do this only after UI is change cause the property isTable is Input and can refresh after this thread.
1598
- setTimeout(() => {
1599
- if (this.virtualScroller) {
1600
- this.renderer.setStyle(this.virtualScroller.contentElementRef.nativeElement, 'width', widthToSet === 'inherit' ? '100%' : widthToSet);
1601
- }
1602
- }, 0);
1602
+ if (this.isTable) {
1603
+ this.setVirtualScrollWidth(widthToSet);
1604
+ }
1605
+ else {
1606
+ // Do this only after UI is change cause the property isTable is Input and can refresh after this thread.
1607
+ setTimeout(() => {
1608
+ this.setVirtualScrollWidth(widthToSet);
1609
+ }, 0);
1610
+ }
1603
1611
  }
1604
1612
  calcColumnsWidth() {
1605
1613
  const fixedMultiple = 3.78; // for converting em to pixel.