@annalib/anna-core 18.2.17 → 18.2.18
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/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +4 -2
- package/fesm2015/annalib-anna-core.mjs +3 -1
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +3 -1
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3559,16 +3559,18 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
3559
3559
|
let headerHeight = this.gtDimension.headerHeight;
|
|
3560
3560
|
let dataOnTopHeight = this.gtDimension.dataOnTopHeight;
|
|
3561
3561
|
let marginFromBottom = this.gtDimension.marginFromBottom;
|
|
3562
|
+
let actualTableHeight;
|
|
3562
3563
|
if (this.overridMaximumRowsWhichCanBeRenderedWithoutScroll) {
|
|
3563
3564
|
this.maximumRowsWhichCanBeRenderedWithoutScroll = this.overridMaximumRowsWhichCanBeRenderedWithoutScroll;
|
|
3565
|
+
actualTableHeight = this.maximumRowsWhichCanBeRenderedWithoutScroll * rowHeight + headerHeight;
|
|
3564
3566
|
}
|
|
3565
3567
|
else {
|
|
3566
3568
|
let heightLeftForTable = viewportHeight - dataOnTopHeight - marginFromBottom;
|
|
3567
3569
|
this.maximumRowsWhichCanBeRenderedWithoutScroll =
|
|
3568
3570
|
Math.ceil((heightLeftForTable - headerHeight - rowHeight) / rowHeight) + 1;
|
|
3571
|
+
actualTableHeight = viewportHeight - dataOnTopHeight - marginFromBottom;
|
|
3569
3572
|
}
|
|
3570
3573
|
// let actualTableHeight = heightLeftForTable - ((heightLeftForTable - headerHeight - rowHeight) % rowHeight);
|
|
3571
|
-
let actualTableHeight = viewportHeight - dataOnTopHeight - marginFromBottom;
|
|
3572
3574
|
this.gtDimension.tableHeight = `${actualTableHeight}px`;
|
|
3573
3575
|
this.numberOfSkeletonRows = Array(this.maximumRowsWhichCanBeRenderedWithoutScroll).fill(0);
|
|
3574
3576
|
}
|