@annalib/anna-core 28.0.0 → 28.0.2
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/esm2022/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.mjs +1 -1
- package/esm2022/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +3 -3
- package/fesm2022/annalib-anna-core.mjs +2 -2
- package/fesm2022/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4882,11 +4882,11 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
4882
4882
|
}
|
|
4883
4883
|
onTableContainerScroll(e) {
|
|
4884
4884
|
const tableViewHeight = e.target.offsetHeight; // viewport
|
|
4885
|
-
const tableScrollHeight = e.target.scrollHeight; //
|
|
4885
|
+
const tableScrollHeight = e.target.scrollHeight; // height of loaded content, if table ht is 100px but total content is 300px it will return 300px
|
|
4886
4886
|
const scrollLocation = e.target.scrollTop; // how far user scrolled
|
|
4887
4887
|
this.removeTooltipOnScroll();
|
|
4888
4888
|
// If the user has scrolled within 150px of the bottom, add more data
|
|
4889
|
-
const buffer = 150;
|
|
4889
|
+
const buffer = this.gtGeneralConfig.bufferSize ? this.gtGeneralConfig.bufferSize : 150;
|
|
4890
4890
|
const limit = tableScrollHeight - tableViewHeight - buffer;
|
|
4891
4891
|
if (scrollLocation > limit) {
|
|
4892
4892
|
const data = this.getTableData(this.start, this.end);
|