@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.
@@ -3555,16 +3555,18 @@ class AnnaNonEditableGenericTableComponent {
3555
3555
  let headerHeight = this.gtDimension.headerHeight;
3556
3556
  let dataOnTopHeight = this.gtDimension.dataOnTopHeight;
3557
3557
  let marginFromBottom = this.gtDimension.marginFromBottom;
3558
+ let actualTableHeight;
3558
3559
  if (this.overridMaximumRowsWhichCanBeRenderedWithoutScroll) {
3559
3560
  this.maximumRowsWhichCanBeRenderedWithoutScroll = this.overridMaximumRowsWhichCanBeRenderedWithoutScroll;
3561
+ actualTableHeight = this.maximumRowsWhichCanBeRenderedWithoutScroll * rowHeight + headerHeight;
3560
3562
  }
3561
3563
  else {
3562
3564
  let heightLeftForTable = viewportHeight - dataOnTopHeight - marginFromBottom;
3563
3565
  this.maximumRowsWhichCanBeRenderedWithoutScroll =
3564
3566
  Math.ceil((heightLeftForTable - headerHeight - rowHeight) / rowHeight) + 1;
3567
+ actualTableHeight = viewportHeight - dataOnTopHeight - marginFromBottom;
3565
3568
  }
3566
3569
  // let actualTableHeight = heightLeftForTable - ((heightLeftForTable - headerHeight - rowHeight) % rowHeight);
3567
- let actualTableHeight = viewportHeight - dataOnTopHeight - marginFromBottom;
3568
3570
  this.gtDimension.tableHeight = `${actualTableHeight}px`;
3569
3571
  this.numberOfSkeletonRows = Array(this.maximumRowsWhichCanBeRenderedWithoutScroll).fill(0);
3570
3572
  }