@shival99/z-ui 2.0.36 → 2.0.37

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.
@@ -4672,7 +4672,7 @@ class ZTableComponent {
4672
4672
  _bulkBarTimer = null;
4673
4673
  _activeColumnVisibilityPopover = signal(null, ...(ngDevMode ? [{ debugName: "_activeColumnVisibilityPopover" }] : []));
4674
4674
  _hasInitializedColumnPinning = false;
4675
- _fitColumnFrame = null;
4675
+ _isFitColumnScheduled = false;
4676
4676
  _isApplyingFitColumnSizing = false;
4677
4677
  // ─── Template-bound State ─────────────────────────────────────────────────
4678
4678
  /** Merged loading state from both zLoading input and config.loading */
@@ -6038,7 +6038,6 @@ class ZTableComponent {
6038
6038
  this._resizeObserver.disconnect();
6039
6039
  this._resizeObserver = null;
6040
6040
  }
6041
- this._cancelFitColumnFrame();
6042
6041
  });
6043
6042
  }
6044
6043
  });
@@ -6575,30 +6574,14 @@ class ZTableComponent {
6575
6574
  this._columnBaseSizing.set(nextBaseSizing);
6576
6575
  }
6577
6576
  _scheduleFitColumnWidths() {
6578
- if (this._fitColumnFrame !== null) {
6577
+ if (this._isFitColumnScheduled) {
6579
6578
  return;
6580
6579
  }
6581
- const run = () => {
6582
- this._fitColumnFrame = null;
6580
+ this._isFitColumnScheduled = true;
6581
+ queueMicrotask(() => {
6582
+ this._isFitColumnScheduled = false;
6583
6583
  this._applyFitColumnWidths();
6584
- };
6585
- if (typeof requestAnimationFrame === 'function') {
6586
- this._fitColumnFrame = requestAnimationFrame(run);
6587
- return;
6588
- }
6589
- this._fitColumnFrame = setTimeout(run, 0);
6590
- }
6591
- _cancelFitColumnFrame() {
6592
- if (this._fitColumnFrame === null) {
6593
- return;
6594
- }
6595
- if (typeof cancelAnimationFrame === 'function' && typeof this._fitColumnFrame === 'number') {
6596
- cancelAnimationFrame(this._fitColumnFrame);
6597
- this._fitColumnFrame = null;
6598
- return;
6599
- }
6600
- clearTimeout(this._fitColumnFrame);
6601
- this._fitColumnFrame = null;
6584
+ });
6602
6585
  }
6603
6586
  _applyFitColumnWidths() {
6604
6587
  this._syncColumnBaseSizing();