@linzjs/step-ag-grid 35.2.1 → 35.2.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.
@@ -66320,15 +66320,16 @@ const Grid = ({
66320
66320
  return r;
66321
66321
  };
66322
66322
  }
66323
+ const userWidth = userSizedColIds.current.get(colDef.colId ?? colDef.field ?? "");
66323
66324
  const adjustedColDef = {
66324
66325
  ...colDef,
66325
- // You cannot pass a width to a flex
66326
- width: colDef.flex ? void 0 : colDef.width,
66326
+ // Flex columns ignore width, so only a user-sized (no longer flex) column gets one
66327
+ width: userWidth ?? (colDef.flex ? void 0 : colDef.width),
66327
66328
  ...!!colDef.flex && { flexAutoSizeWidth: colDef.width },
66328
66329
  // If this is allowed flex columns don't size based on flex
66329
66330
  suppressSizeToFit: true,
66330
66331
  // Auto-sizing flex columns breaks everything
66331
- flex,
66332
+ flex: userWidth != null ? void 0 : flex,
66332
66333
  suppressAutoSize: !!flex,
66333
66334
  sortable,
66334
66335
  comparator