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