You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DataGrid height doesn't update when rowCount does #5030
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.
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.
changed the title [-]DataGrid height doesn't update when number of item does[/-][+]DataGrid height doesn't update when number of items does[/+]on Aug 16, 2021
changed the title [-]DataGrid height doesn't update when number of items does[/-][+]DataGrid height doesn't update when `rowCount` does[/+]on Aug 16, 2021
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.
Just mentioning that this issue is very similar to this one: #4163. But in this case, the data grid is not taking into account the horizontal scrollbar when calculating the height.
I was investigating it and looks like there are 2 different problems. The data grid is not taking into account the horizontal scrollbar when calculating the height and also data grid not recalculating its height when rowCount changes.
As a workaround, I added the DataGrid pagination property. It fixed one issue for me, now it does recalculate the height when pageSize changes. But the other issue is still happening.
The computed height is too small when the grid has a horizontal scroll.
I don't think this is fixed. The Security solution's "hack" is very pixel based which won't work long-term as we continue to build user-controlled layout options.
Activity
[-]DataGrid height doesn't update when number of item does[/-][+]DataGrid height doesn't update when number of items does[/+][-]DataGrid height doesn't update when number of items does[/-][+]DataGrid height doesn't update when `rowCount` does[/+]elizabetdev commentedon Aug 18, 2021
Just mentioning that this issue is very similar to this one: #4163. But in this case, the data grid is not taking into account the horizontal scrollbar when calculating the height.
machadoum commentedon Aug 18, 2021
I was investigating it and looks like there are 2 different problems. The data grid is not taking into account the horizontal scrollbar when calculating the height and also data grid not recalculating its height when rowCount changes.
machadoum commentedon Aug 24, 2021
As a workaround, I added the
DataGridpagination property. It fixed one issue for me, now it does recalculate the height whenpageSizechanges. But the other issue is still happening.[RAC] EuiDataGrid pagination (#109269)
[RAC] EuiDataGrid pagination (elastic#109269)
[RAC] EuiDataGrid pagination (#109269) (#110316)
[RAC] EuiDataGrid pagination (elastic#109269)
[RAC] EuiDataGrid pagination (elastic#109269)
[RAC] EuiDataGrid pagination (#109269) (#110471)
cchaos commentedon Oct 19, 2021
I don't think this is fixed. The Security solution's "hack" is very pixel based which won't work long-term as we continue to build user-controlled layout options.
cee-chen commentedon Jan 24, 2022
This should have been resolved by #5313 and #5400
[RAC] EuiDataGrid pagination (elastic#109269)