Skip to content

DataGrid height doesn't update when rowCount does #5030

@machadoum

Description

@machadoum

I am having issues with DataGrid and vertical scroll. Ideally, I would like my grid never to scroll vertically. Instead, it should expand to the full height based on its content. And I am not using data grid pagination.

When I change rowCount dynamically, the height doesn't get re-calculated.

Screenshot 2021-08-13 at 18 14 49

I was able to isolate the issue on codesandbox

There is a second bug related to calculated height present in this sandbox that might be related. The computed height is too small when the grid has a horizontal scroll.
Screenshot 2021-08-16 at 10 28 26

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions