@pepperi-addons/ngx-lib 0.4.2-beta.92 → 0.4.2-beta.94
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 +2 -9
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs +1 -8
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs +1 -8
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1598,14 +1598,7 @@ class PepListComponent {
|
|
|
1598
1598
|
setColumnsWidth(widthToSet, wait = false) {
|
|
1599
1599
|
this.renderer.setStyle(this.hostElement.nativeElement, 'width', widthToSet);
|
|
1600
1600
|
// Do this only after UI is change cause the property isTable is Input and can refresh after this thread.
|
|
1601
|
-
if (this.virtualScroller) {
|
|
1602
|
-
this.renderer.setStyle(this.virtualScroller.contentElementRef.nativeElement, 'width', widthToSet === 'inherit' ? '100%' : widthToSet);
|
|
1603
|
-
}
|
|
1604
|
-
// Wait for delay to update properties in the last chosen and not this.
|
|
1605
|
-
// await new Promise((resolve) => setTimeout(resolve, 0));
|
|
1606
1601
|
setTimeout(() => {
|
|
1607
|
-
this.renderer.setStyle(this.hostElement.nativeElement, 'width', widthToSet);
|
|
1608
|
-
// Do this only after UI is change cause the property isTable is Input and can refresh after this thread.
|
|
1609
1602
|
if (this.virtualScroller) {
|
|
1610
1603
|
this.renderer.setStyle(this.virtualScroller.contentElementRef.nativeElement, 'width', widthToSet === 'inherit' ? '100%' : widthToSet);
|
|
1611
1604
|
}
|
|
@@ -2243,7 +2236,7 @@ class PepListComponent {
|
|
|
2243
2236
|
}
|
|
2244
2237
|
totalCalcColsWidth += uiControlField.calcColumnWidth;
|
|
2245
2238
|
}
|
|
2246
|
-
const widthToSet = (this.tableStartWidth +
|
|
2239
|
+
const widthToSet = (this.tableStartWidth + widthToAdd) + 'px';
|
|
2247
2240
|
console.log(`onListResize -> widthToSet: ${widthToSet} *** widthToAdd: ${widthToAdd}`);
|
|
2248
2241
|
this.setColumnsWidth(widthToSet);
|
|
2249
2242
|
this.checkForChanges = new Date().getTime();
|