mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
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;
|
||||
onGridReady?.(e);
|
||||
if (autoHeight) e.api.setDomLayout('autoHeight');
|
||||
if (autoFitColumns) e.api?.sizeColumnsToFit?.();
|
||||
},
|
||||
[autoHeight, autoFitColumns, onGridReady],
|
||||
[autoHeight, onGridReady],
|
||||
);
|
||||
|
||||
const handleGridSizeChanged = useCallback(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue