@pepperi-addons/ngx-lib 0.4.2-beta.94 → 0.4.2-beta.96
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 +17 -9
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs +16 -8
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs +16 -8
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/list/list.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1450,7 +1450,7 @@ class PepListComponent {
|
|
|
1450
1450
|
}
|
|
1451
1451
|
}
|
|
1452
1452
|
getSelectionCheckBoxWidth() {
|
|
1453
|
-
return this.selectionTypeForActions === 'multi' ? 44 : 0;
|
|
1453
|
+
return this.selectionTypeForActions === 'multi' ? 44 : (this.selectionTypeForActions === 'single' ? 44 : 0);
|
|
1454
1454
|
}
|
|
1455
1455
|
setContainerWidth() {
|
|
1456
1456
|
if (!this.hostElement.nativeElement.parentElement) {
|
|
@@ -1592,14 +1592,22 @@ class PepListComponent {
|
|
|
1592
1592
|
}
|
|
1593
1593
|
return res;
|
|
1594
1594
|
}
|
|
1595
|
-
|
|
1595
|
+
setVirtualScrollWidth(widthToSet) {
|
|
1596
|
+
if (this.virtualScroller) {
|
|
1597
|
+
this.renderer.setStyle(this.virtualScroller.contentElementRef.nativeElement, 'width', widthToSet === 'inherit' ? '100%' : widthToSet);
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
setColumnsWidth(widthToSet) {
|
|
1596
1601
|
this.renderer.setStyle(this.hostElement.nativeElement, 'width', widthToSet);
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1602
|
+
if (this.isTable) {
|
|
1603
|
+
this.setVirtualScrollWidth(widthToSet);
|
|
1604
|
+
}
|
|
1605
|
+
else {
|
|
1606
|
+
// Do this only after UI is change cause the property isTable is Input and can refresh after this thread.
|
|
1607
|
+
setTimeout(() => {
|
|
1608
|
+
this.setVirtualScrollWidth(widthToSet);
|
|
1609
|
+
}, 0);
|
|
1610
|
+
}
|
|
1603
1611
|
}
|
|
1604
1612
|
calcColumnsWidth() {
|
|
1605
1613
|
const fixedMultiple = 3.78; // for converting em to pixel.
|