@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.
@@ -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; // length of all table
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);