@linzjs/step-ag-grid 14.0.2 → 14.0.3

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "14.0.2",
5
+ "version": "14.0.3",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -74,7 +74,7 @@ export const Grid = ({
74
74
  rowSelection = "multiple",
75
75
  suppressColumnVirtualization = true,
76
76
  theme = "ag-theme-alpine",
77
- sizeColumns = "auto",
77
+ sizeColumns = "auto-skip-headers",
78
78
  ...params
79
79
  }: GridProps): JSX.Element => {
80
80
  const {
@@ -418,6 +418,9 @@ export const Grid = ({
418
418
  postSortRows={params.postSortRows ?? postSortRows}
419
419
  onSelectionChanged={synchroniseExternalStateToGridSelection}
420
420
  onColumnMoved={params.onColumnMoved}
421
+ onColumnResized={() => {
422
+ sizeColumns !== "none" && sizeColumnsToFit();
423
+ }}
421
424
  alwaysShowVerticalScroll={params.alwaysShowVerticalScroll}
422
425
  isExternalFilterPresent={isExternalFilterPresent}
423
426
  doesExternalFilterPass={doesExternalFilterPass}