fix: set maxHeight of List components to height when in AutoSizer - #43056
fix: set maxHeight of List components to height when in AutoSizer#43056greggailly wants to merge 1 commit into
Conversation
Code Review Agent Run #d3f209Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
…text to avoiding collapsing to 0
6637561 to
82768bc
Compare
|
The flagged issue is correct. The current implementation subtracts Proposed Fix<List
style={{ width, height }}
rowHeight={rowHeight}
rowCount={flattenedItems.length}
rowProps={rowProps}
...
/>There are no other comments on this PR to address. Would you like me to assist with anything else? superset-frontend/src/explore/components/DatasourcePanel/DatasourceItems.tsx |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #43056 +/- ##
==========================================
- Coverage 66.55% 66.54% -0.01%
==========================================
Files 2864 2864
Lines 161894 161894
Branches 37305 37305
==========================================
- Hits 107742 107736 -6
- Misses 52106 52112 +6
Partials 2046 2046
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Code Review Agent Run #2d264dActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
rusackas
left a comment
There was a problem hiding this comment.
Thanks @greggailly, this lines up nicely for the react-window v2 regression. LGTM, though if you can fix the video in the PR description (maybe it didn't finish uploading?) that would be appreciated.
My bad ! Done |
Set maxHeight of List components to height when in AutoSizer context to avoiding collapsing to 0.
SUMMARY
v2 of react-window introduced in 3872790 adds a default value of
100%to maxHeight property ofListcomponent but when thisListis a child ofAutoSizerthen100%resolves to 0px asAutoSizercreates a wrapping div of height 0.Proposal: force
maxHeighttoheightso that it does not collapse to 0.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Initial problem:

ADDITIONAL INFORMATION