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