@linzjs/step-ag-grid 21.0.3 → 21.0.4
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
|
@@ -2367,13 +2367,13 @@ const Grid = ({ "data-testid": dataTestId, rowSelection = "multiple", suppressCo
|
|
|
2367
2367
|
return;
|
|
2368
2368
|
}
|
|
2369
2369
|
if (gridRendered === "empty") {
|
|
2370
|
-
if (!hasSetContentSizeEmpty.current &&
|
|
2370
|
+
if (!hasSetContentSizeEmpty.current && !hasSetContentSize.current) {
|
|
2371
2371
|
hasSetContentSizeEmpty.current = true;
|
|
2372
2372
|
params.onContentSize?.(result);
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
2375
|
else if (gridRendered === "rows-visible") {
|
|
2376
|
-
if (
|
|
2376
|
+
if (!hasSetContentSize.current) {
|
|
2377
2377
|
hasSetContentSize.current = true;
|
|
2378
2378
|
params.onContentSize?.(result);
|
|
2379
2379
|
}
|
|
@@ -2584,7 +2584,9 @@ const Grid = ({ "data-testid": dataTestId, rowSelection = "multiple", suppressCo
|
|
|
2584
2584
|
if (!isEmpty(updatingCols()))
|
|
2585
2585
|
return;
|
|
2586
2586
|
const skipHeader = sizeColumns === "auto-skip-headers";
|
|
2587
|
-
|
|
2587
|
+
if (hasSetContentSize.current) {
|
|
2588
|
+
autoSizeColumns({ skipHeader, userSizedColIds: userSizedColIds.current, colIds: colIdsEdited.current });
|
|
2589
|
+
}
|
|
2588
2590
|
colIdsEdited.current.clear();
|
|
2589
2591
|
}, [autoSizeColumns, rowData?.length, setInitialContentSize, sizeColumns, updatedDep, updatingCols]);
|
|
2590
2592
|
/**
|
|
@@ -2697,11 +2699,15 @@ const Grid = ({ "data-testid": dataTestId, rowSelection = "multiple", suppressCo
|
|
|
2697
2699
|
if (!isEmpty(colIdsEdited.current)) {
|
|
2698
2700
|
const skipHeader = sizeColumns === "auto-skip-headers";
|
|
2699
2701
|
if (sizeColumns === "auto" || skipHeader) {
|
|
2700
|
-
defer$1(() =>
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2702
|
+
defer$1(() => {
|
|
2703
|
+
if (hasSetContentSize.current) {
|
|
2704
|
+
autoSizeColumns({
|
|
2705
|
+
skipHeader,
|
|
2706
|
+
userSizedColIds: userSizedColIds.current,
|
|
2707
|
+
colIds: colIdsEdited.current,
|
|
2708
|
+
});
|
|
2709
|
+
}
|
|
2710
|
+
});
|
|
2705
2711
|
}
|
|
2706
2712
|
colIdsEdited.current.clear();
|
|
2707
2713
|
}
|