igniteui-angular 21.2.12 → 21.2.13

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.
@@ -5405,6 +5405,15 @@ class IgxGridBaseDirective {
5405
5405
  if (!sumExistingWidths && !columnsToSize) {
5406
5406
  return '0px';
5407
5407
  }
5408
+ // When the grid has no measurable width, calculateGridWidth() falls back to the
5409
+ // sum of its column widths and sets isColumnWidthSum. If all visible columns
5410
+ // already have explicit or constrained widths, columnsToSize is 0 and
5411
+ // computedWidth equals sumExistingWidths, resulting in 0 / 0 = NaN.
5412
+ // Return the "0px" sentinel so _derivePossibleWidth() preserves the existing
5413
+ // valid column widths.
5414
+ if (columnsToSize <= 0 && this.isColumnWidthSum) {
5415
+ return '0px';
5416
+ }
5408
5417
  computedWidth -= this.featureColumnsWidth();
5409
5418
  const columnWidth = !Number.isFinite(sumExistingWidths) ?
5410
5419
  computedWidth / columnsToSize :