Skip to content

Fix zero-width react-window list in InfiniteList fixed-height mode - #1105

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
lamborghini21:fix/infinite-list-zero-width
Jul 30, 2026
Merged

Fix zero-width react-window list in InfiniteList fixed-height mode#1105
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
lamborghini21:fix/infinite-list-zero-width

Conversation

@lamborghini21

@lamborghini21 lamborghini21 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Description

InfiniteList was calling listContent(fixedHeight, 0) in fixed-height mode, hardcoding width={0} and passed to react-window's FixedSizeList. Every row was laid out at zero width, making the list content effectively invisible whenever a caller supplied the height prop.

Fixed by wrapping the fixed-height branch in AutoSizer (with disableHeight, since height is already fixed via inline style on the container) to measure the actual container width and pass it to listContent instead of 0. This mirrors the pattern already used in the dynamic-height branch below it.

Related Issue

Closes #1032

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No console errors
  • Uses Lucide icons consistently
  • Responsive design implemented
  • Starknet best practices followed

Wraps the fixed-height branch in AutoSizer (disableHeight) to get an
actual measured container width instead of hardcoding width=0, which
made every row render invisible whenever a caller supplied the height
prop.
Fixes rinafcode#1032
@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@lamborghini21 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project.

@RUKAYAT-CODER
RUKAYAT-CODER merged commit d00ece0 into rinafcode:main Jul 30, 2026
8 checks passed
@lamborghini21
lamborghini21 deleted the fix/infinite-list-zero-width branch July 30, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix zero-width react-window list in InfiniteList fixed-height mode

2 participants