@shival99/z-ui 1.7.3 → 1.7.4

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.
@@ -3699,9 +3699,11 @@ class ZTableComponent {
3699
3699
  if (this.isVirtual()) {
3700
3700
  const wrapperEl = this.tbodyWrapper()?.nativeElement;
3701
3701
  if (wrapperEl) {
3702
+ wrapperEl.dispatchEvent(new Event('resize'));
3702
3703
  wrapperEl.scrollTop = 0;
3703
3704
  }
3704
3705
  this.virtualizer.scrollToOffset(0);
3706
+ this.virtualizer.measure();
3705
3707
  }
3706
3708
  this._checkVerticalScroll();
3707
3709
  this._checkHorizontalScroll();
@@ -3731,6 +3733,10 @@ class ZTableComponent {
3731
3733
  wrapperEl.scrollTop = 0;
3732
3734
  wrapperEl.scrollLeft = this._savedScrollLeft();
3733
3735
  }
3736
+ if (this.isVirtual()) {
3737
+ this.virtualizer.scrollToOffset(0);
3738
+ this.virtualizer.measure();
3739
+ }
3734
3740
  this._checkScrollState();
3735
3741
  });
3736
3742
  });