pace-table-lib 1.0.16 → 1.0.17

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.
@@ -8380,6 +8380,15 @@
8380
8380
  return { cellHeight: Number(dynHeight), cellWidth: Number(dWidth), fixedColWidth: Number(fWidth) };
8381
8381
  }, [isFitTableOn, columnCount, rowCount, fixedColCount, tableWidth, tableHeight]);
8382
8382
  const gridRef = React.useRef(null);
8383
+ React.useEffect(() => {
8384
+ const t = setTimeout(() => {
8385
+ if (gridRef.current) {
8386
+ gridRef.current.recomputeGridSize();
8387
+ gridRef.current.forceUpdateGrids();
8388
+ }
8389
+ }, 0);
8390
+ return () => clearTimeout(t);
8391
+ }, [tableWidth, tableHeight, tableData, isFitTableOn]);
8383
8392
  const conditionalFormatsByType = React.useMemo(() => {
8384
8393
  const map = { value: [], "row header": [], "column header": [] };
8385
8394
  conditionalFormatArr?.forEach((format) => {