@annalib/anna-core 34.0.43 → 34.0.44
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.
|
@@ -4879,7 +4879,9 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4879
4879
|
let dataOnTopHeight =
|
|
4880
4880
|
// eslint-disable-next-line no-unsafe-optional-chaining
|
|
4881
4881
|
element?.getBoundingClientRect()?.top + window?.scrollY + (hasHorizontalScrollbar ? 4 : 1);
|
|
4882
|
-
|
|
4882
|
+
if (dataOnTopHeight < 0) {
|
|
4883
|
+
dataOnTopHeight = this.gtDimension?.dataOnTopHeight ? this.gtDimension?.dataOnTopHeight : 252;
|
|
4884
|
+
}
|
|
4883
4885
|
if (this.fixNumberOfRowsForPopup) {
|
|
4884
4886
|
const maxNoOfRowsToDisplay = viewportHeight < 740 ? 5 : 10;
|
|
4885
4887
|
this.maximumRowsWhichCanBeRenderedWithoutScroll = maxNoOfRowsToDisplay;
|