@pepperi-addons/ngx-lib 0.4.2-beta.86 → 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
|
@@ -1548,7 +1548,7 @@ class PepListComponent {
|
|
|
1548
1548
|
if (!this.cd['destroyed']) {
|
|
1549
1549
|
this.cd.detectChanges();
|
|
1550
1550
|
}
|
|
1551
|
-
// Set the
|
|
1551
|
+
// Set the container width.
|
|
1552
1552
|
if (this.containerWidth <= 0) {
|
|
1553
1553
|
this.setContainerWidth();
|
|
1554
1554
|
}
|
|
@@ -1591,8 +1591,10 @@ class PepListComponent {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
return res;
|
|
1593
1593
|
}
|
|
1594
|
-
setColumnsWidth(widthToSet) {
|
|
1594
|
+
setColumnsWidth(widthToSet, wait = false) {
|
|
1595
1595
|
this.renderer.setStyle(this.hostElement.nativeElement, 'width', widthToSet);
|
|
1596
|
+
// Wait for delay to update properties in the last chosen and not this.
|
|
1597
|
+
// await new Promise((resolve) => setTimeout(resolve, 0));
|
|
1596
1598
|
setTimeout(() => {
|
|
1597
1599
|
// Do this only after UI is change cause the property isTable is Input and can refresh after this thread.
|
|
1598
1600
|
if (this.virtualScroller) {
|
|
@@ -2221,7 +2223,7 @@ class PepListComponent {
|
|
|
2221
2223
|
}
|
|
2222
2224
|
totalCalcColsWidth += uiControlField.calcColumnWidth;
|
|
2223
2225
|
}
|
|
2224
|
-
const widthToSet = (this.tableStartWidth + widthToAdd) +
|
|
2226
|
+
const widthToSet = (this.tableStartWidth + widthToAdd) + 'px';
|
|
2225
2227
|
console.log(`onListResize -> widthToSet: ${widthToSet} *** widthToAdd: ${widthToAdd}`);
|
|
2226
2228
|
this.setColumnsWidth(widthToSet);
|
|
2227
2229
|
this.checkForChanges = new Date().getTime();
|