Remove autofit on gridReady

- Potentially causes horizontal scrollbar to flash on render
This commit is contained in:
jeffvli 2023-07-20 17:36:50 -07:00
parent e7c15ef5f1
commit f5cbcace64

View file

@ -446,9 +446,8 @@ export const VirtualTable = forwardRef(
if (!e?.api) return; if (!e?.api) return;
onGridReady?.(e); onGridReady?.(e);
if (autoHeight) e.api.setDomLayout('autoHeight'); if (autoHeight) e.api.setDomLayout('autoHeight');
if (autoFitColumns) e.api?.sizeColumnsToFit?.();
}, },
[autoHeight, autoFitColumns, onGridReady], [autoHeight, onGridReady],
); );
const handleGridSizeChanged = useCallback( const handleGridSizeChanged = useCallback(