@pepperi-addons/ngx-lib 0.4.2-beta.87 → 0.4.2-beta.88
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 -4
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs +5 -3
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs +5 -3
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1551,7 +1551,7 @@ class PepListComponent {
|
|
|
1551
1551
|
if (!this.cd['destroyed']) {
|
|
1552
1552
|
this.cd.detectChanges();
|
|
1553
1553
|
}
|
|
1554
|
-
// Set the
|
|
1554
|
+
// Set the container width.
|
|
1555
1555
|
if (this.containerWidth <= 0) {
|
|
1556
1556
|
this.setContainerWidth();
|
|
1557
1557
|
}
|
|
@@ -1594,8 +1594,10 @@ class PepListComponent {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
return res;
|
|
1596
1596
|
}
|
|
1597
|
-
setColumnsWidth(widthToSet) {
|
|
1597
|
+
setColumnsWidth(widthToSet, wait = false) {
|
|
1598
1598
|
this.renderer.setStyle(this.hostElement.nativeElement, 'width', widthToSet);
|
|
1599
|
+
// Wait for delay to update properties in the last chosen and not this.
|
|
1600
|
+
// await new Promise((resolve) => setTimeout(resolve, 0));
|
|
1599
1601
|
setTimeout(() => {
|
|
1600
1602
|
// Do this only after UI is change cause the property isTable is Input and can refresh after this thread.
|
|
1601
1603
|
if (this.virtualScroller) {
|
|
@@ -2230,7 +2232,7 @@ class PepListComponent {
|
|
|
2230
2232
|
}
|
|
2231
2233
|
totalCalcColsWidth += uiControlField.calcColumnWidth;
|
|
2232
2234
|
}
|
|
2233
|
-
const widthToSet = (this.tableStartWidth + widthToAdd) +
|
|
2235
|
+
const widthToSet = (this.tableStartWidth + widthToAdd) + 'px';
|
|
2234
2236
|
console.log(`onListResize -> widthToSet: ${widthToSet} *** widthToAdd: ${widthToAdd}`);
|
|
2235
2237
|
this.setColumnsWidth(widthToSet);
|
|
2236
2238
|
this.checkForChanges = new Date().getTime();
|