@annalib/anna-core 34.0.33 → 34.0.34
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.
|
@@ -4866,15 +4866,13 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4866
4866
|
let viewportHeight = window.innerHeight;
|
|
4867
4867
|
const { rowHeight } = this.gtDimension;
|
|
4868
4868
|
const { headerHeight } = this.gtDimension;
|
|
4869
|
-
// const { dataOnTopHeight } = this.gtDimension; // not used anymore
|
|
4870
|
-
// const { marginFromBottom } = this.gtDimension;
|
|
4871
4869
|
let actualTableHeight;
|
|
4872
4870
|
const element = this.tableElementRef?.nativeElement;
|
|
4873
4871
|
const hasHorizontalScrollbar = element.scrollWidth > element.clientWidth;
|
|
4874
4872
|
let dataOnTopHeight =
|
|
4875
4873
|
// eslint-disable-next-line no-unsafe-optional-chaining
|
|
4876
4874
|
element?.getBoundingClientRect()?.top + window?.scrollY + (hasHorizontalScrollbar ? 4 : 1);
|
|
4877
|
-
dataOnTopHeight = dataOnTopHeight > 0 ? dataOnTopHeight : 252;
|
|
4875
|
+
dataOnTopHeight = dataOnTopHeight > 0 ? Math.ceil(dataOnTopHeight) : 252;
|
|
4878
4876
|
if (this.fixNumberOfRowsForPopup) {
|
|
4879
4877
|
const maxNoOfRowsToDisplay = viewportHeight < 740 ? 5 : 10;
|
|
4880
4878
|
this.maximumRowsWhichCanBeRenderedWithoutScroll = maxNoOfRowsToDisplay;
|
|
@@ -4884,9 +4882,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4884
4882
|
const minHeightForTable = headerHeight + 3 * rowHeight;
|
|
4885
4883
|
viewportHeight = viewportHeight <= dataOnTopHeight ? dataOnTopHeight + minHeightForTable : viewportHeight;
|
|
4886
4884
|
const heightLeftForTable = viewportHeight - dataOnTopHeight;
|
|
4887
|
-
// const heightLeftForTable = viewportHeight - dataOnTopHeight - marginFromBottom;
|
|
4888
4885
|
this.maximumRowsWhichCanBeRenderedWithoutScroll = Math.ceil((heightLeftForTable - headerHeight) / rowHeight);
|
|
4889
|
-
// actualTableHeight = viewportHeight - dataOnTopHeight - marginFromBottom;
|
|
4890
4886
|
if (this.fixRowsToRender) {
|
|
4891
4887
|
this.maximumRowsWhichCanBeRenderedWithoutScroll = this.fixRowsToRender;
|
|
4892
4888
|
actualTableHeight =
|