From 1263f5aea0b79f3fe4c4c10fefa9cc978d69cffa Mon Sep 17 00:00:00 2001 From: Samir Kamal <1954121+skamril@users.noreply.github.com> Date: Thu, 30 Jan 2025 12:29:16 +0100 Subject: [PATCH] fix(ui-commons): keep auto size for DataGrid (#2324) --- webapp/src/components/common/DataGrid.tsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/webapp/src/components/common/DataGrid.tsx b/webapp/src/components/common/DataGrid.tsx index 39659f4e24..40eb3ad8c0 100644 --- a/webapp/src/components/common/DataGrid.tsx +++ b/webapp/src/components/common/DataGrid.tsx @@ -46,7 +46,6 @@ export interface DataGridProps extends Omit({ rows: CompactSelection.empty(), @@ -281,12 +275,8 @@ function DataGrid({ rowHeight={ROW_HEIGHT} smoothScrollX smoothScrollY - overscrollX={OVERSCROLL} - overscrollY={OVERSCROLL} width="100%" - height={height} theme={darkTheme} - {...rest} rows={rows} columns={columns} rowMarkers={isStringRowMarkers ? "none" : rowMarkersOptions} @@ -299,6 +289,7 @@ function DataGrid({ gridSelection={gridSelection} onGridSelectionChange={handleGridSelectionChange} freezeColumns={adjustedFreezeColumns} + {...rest} /> ); }