Repository navigation
[EuiDataGrid] Allow the grid to expand & contract with changing rowCount values - #5313
Conversation
…unts, when no pagination is present
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5313/ |
|
I'm not sure if I'm testing incorrectly, but I'm on https://eui.elastic.co/pr_5313/#/tabular-content/data-grid on latest Firefox and this isn't working for me unfortunately. After 2 rows the max height appears to be cached and the scrollbar appears + removing rows does not fix the grid height. qhP7yKIONh.mp4 |
cee-chen
left a comment
There was a problem hiding this comment.
My FF appears to be defective in its testing 🙈 Greg, Bree, and Trevor have all confirmed this is working for them, and the logic seems sound, so let's move ahead with this! (NB: don't forget to revert)
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5313/ |
…unt values (elastic#5313) * Allow the datagrid to expand&contract in response to different row counts, when no pagination is present * changelog
Summary
Addresses part of #5030, where increasing the row count in a pagination-less grid only works the first time, and subsequent updates trigger a scroll bar. The issue was the established height was being used to limit the grid's viewport, and that limit was being re-applied with changes to
rowCountinstead of dropping the limit & re-calculating.Before
rowcount_before.mov
After
rowcount_after.mov
Checklist
- [ ] Check against all themes for compatibility in both light and dark modes- [ ] Checked in mobile- [ ] Props have proper autodocs and playground toggles- [ ] Added documentation- [ ] Checked Code Sandbox works for any docs examples- [ ] Added or updated jest and cypress tests[revert me]commit