-
Notifications
You must be signed in to change notification settings - Fork 866
[EuiDataGrid] Fix row height not updating dynamically when set to auto
#5281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
cee-chen
merged 19 commits into
elastic:master
from
cee-chen:datagrid-auto-height-props-update
Oct 28, 2021
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
17c6eb8
[REVERT ME] Discover issue repro + auto testing
cee-chen 0eab3ab
Remove isHeightSame check
cee-chen a553005
Remove same height check from shouldComponentUpdate
cee-chen 6b870fd
[Proposed refactors]
cee-chen 10317cb
Improve unit tests
cee-chen 9eb6651
Add changelog entry
cee-chen 9e844ea
[PR feedback] Fix `isAutoHeight` false positive
cee-chen 22aed7a
[PR feedback/Discover testing] Trigger component update when rowHeigh…
cee-chen 1e3ded2
[cleanup] Remove now-unused compareHeights util
cee-chen 4717a89
[revert] rename setAutoRowHeight back to recalculateRowHeight
cee-chen 0149a10
Add enqueue/timeout to recalculateRowHeight updates
cee-chen 67d27af
Remove clearHeightsCache completely
cee-chen 03e91d2
Unset row+column height values on unmount (#3)
chandlerprall 6382ca8
Merge branch 'master' into datagrid-auto-height-props-update
constancecchen bd2e315
Add unit test for new unsetRowHeight
cee-chen ed76e3b
Merge branch 'master' into datagrid-auto-height-props-update
constancecchen 83f7eea
Revert "[REVERT ME] Discover issue repro + auto testing"
cee-chen 255ae54
Remove hidden columns from row height cache
chandlerprall 4b66cbf
Early return in getRowHeight
chandlerprall File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick walkthrough of changes:
0eab3ab is the primary workaround @chandlerprall proposed and @VladLasitsa had in his draft PR
(this code diff) a553005 removes height check logic from
shouldComponentUpdateas well. I figured if we aren't checking for same height, it makes sense to remove this code also to reduce extra updates. When I tested with auto height I did not see any issues or problems with height not updating when it should (I tested sorting, density, and hiding/reordering columns).Some optional proposed refactors: 6b870fd