@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.
- package/esm2020/list/list.component.mjs +6 -1
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs +5 -0
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs +5 -0
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1593,9 +1593,14 @@ class PepListComponent {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
setColumnsWidth(widthToSet, wait = false) {
|
|
1595
1595
|
this.renderer.setStyle(this.hostElement.nativeElement, 'width', widthToSet);
|
|
1596
|
+
// Do this only after UI is change cause the property isTable is Input and can refresh after this thread.
|
|
1597
|
+
if (this.virtualScroller) {
|
|
1598
|
+
this.renderer.setStyle(this.virtualScroller.contentElementRef.nativeElement, 'width', widthToSet === 'inherit' ? '100%' : widthToSet);
|
|
1599
|
+
}
|
|
1596
1600
|
// Wait for delay to update properties in the last chosen and not this.
|
|
1597
1601
|
// await new Promise((resolve) => setTimeout(resolve, 0));
|
|
1598
1602
|
setTimeout(() => {
|
|
1603
|
+
this.renderer.setStyle(this.hostElement.nativeElement, 'width', widthToSet);
|
|
1599
1604
|
// Do this only after UI is change cause the property isTable is Input and can refresh after this thread.
|
|
1600
1605
|
if (this.virtualScroller) {
|
|
1601
1606
|
this.renderer.setStyle(this.virtualScroller.contentElementRef.nativeElement, 'width', widthToSet === 'inherit' ? '100%' : widthToSet);
|