Remove autofit on gridReady
- Potentially causes horizontal scrollbar to flash on render
This commit is contained in:
parent
e7c15ef5f1
commit
f5cbcace64
1 changed files with 1 additions and 2 deletions
|
@ -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(
|
||||||
|
|
Reference in a new issue