CE-604 make grid always fit on screen, so h-scrollbar & column headers are always present (by turning off autoHeight and adding a set height

This commit is contained in:
2023-10-27 14:28:57 -05:00
parent 1503e2a1d5
commit 04630fd154

View File

@ -2019,7 +2019,7 @@ function RecordQuery({table, launchProcess}: Props): JSX.Element
page={pageNumber} page={pageNumber}
checkboxSelection checkboxSelection
disableSelectionOnClick disableSelectionOnClick
autoHeight autoHeight={false}
rows={rows} rows={rows}
// getRowHeight={() => "auto"} // maybe nice? wraps values in cells... // getRowHeight={() => "auto"} // maybe nice? wraps values in cells...
columns={columnsModel} columns={columnsModel}
@ -2043,7 +2043,7 @@ function RecordQuery({table, launchProcess}: Props): JSX.Element
getRowId={(row) => row.__rowIndex} getRowId={(row) => row.__rowIndex}
selectionModel={rowSelectionModel} selectionModel={rowSelectionModel}
hideFooterSelectedRowCount={true} hideFooterSelectedRowCount={true}
sx={{border: 0}} sx={{border: 0, height: "calc(100vh - 250px)"}}
/> />
</Box> </Box>
</Card> </Card>