igniteui-angular 21.1.5 → 21.1.6

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.
@@ -3786,7 +3786,7 @@ class IgxGridBaseDirective {
3786
3786
  this.cdr.detectChanges();
3787
3787
  });
3788
3788
  this.verticalScrollContainer.contentSizeChange.pipe(filter(() => !this._init), throttleTime(30), destructor).subscribe(() => {
3789
- this.notifyChanges(true);
3789
+ this.onContentSizeChange();
3790
3790
  });
3791
3791
  this.verticalScrollContainer.chunkPreload.pipe(filter(() => !this._init), destructor).subscribe(() => {
3792
3792
  this.updateMergedData();
@@ -6834,18 +6834,21 @@ class IgxGridBaseDirective {
6834
6834
  if (!this._height) {
6835
6835
  return null;
6836
6836
  }
6837
+ const styles = this.document.defaultView.getComputedStyle(this.nativeElement);
6837
6838
  const actualTheadRow = this.getTheadRowHeight();
6838
6839
  const footerHeight = this.getFooterHeight();
6839
6840
  const toolbarHeight = this.getToolbarHeight();
6840
6841
  const pagingHeight = this.getPagingFooterHeight();
6841
6842
  const groupAreaHeight = this.getGroupAreaHeight();
6842
6843
  const scrHeight = this.getComputedHeight(this.scr.nativeElement);
6844
+ const borderTop = parseFloat(styles.getPropertyValue('border-top-width')) || 0;
6845
+ const borderBottom = parseFloat(styles.getPropertyValue('border-bottom-width')) || 0;
6843
6846
  const renderedHeight = toolbarHeight + actualTheadRow +
6844
6847
  footerHeight + pagingHeight + groupAreaHeight +
6845
- scrHeight;
6848
+ scrHeight + borderTop + borderBottom;
6846
6849
  let gridHeight = 0;
6847
6850
  if (this.isPercentHeight) {
6848
- const computed = this.document.defaultView.getComputedStyle(this.nativeElement).getPropertyValue('height');
6851
+ const computed = styles.getPropertyValue('height');
6849
6852
  const autoSize = this._shouldAutoSize(renderedHeight);
6850
6853
  if (autoSize || computed.indexOf('%') !== -1) {
6851
6854
  const bodyHeight = this.getDataBasedBodyHeight();
@@ -7726,6 +7729,9 @@ class IgxGridBaseDirective {
7726
7729
  return false;
7727
7730
  return Object.keys(oldData[0]).join() !== Object.keys(newData[0]).join();
7728
7731
  }
7732
+ onContentSizeChange() {
7733
+ this.notifyChanges(true);
7734
+ }
7729
7735
  /**
7730
7736
  * Clears the current navigation service active node
7731
7737
  */