Skip to content

Handle zero-area layouts in VirtualizedList viewability (#57964) - #57964

Open
cipolleschi wants to merge 1 commit into
react:mainfrom
cipolleschi:export-D116026116
Open

Handle zero-area layouts in VirtualizedList viewability (#57964)#57964
cipolleschi wants to merge 1 commit into
react:mainfrom
cipolleschi:export-D116026116

Conversation

@cipolleschi

@cipolleschi cipolleschi commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary:

VirtualizedList treated horizontal lists with zero cross-axis size as visible because viewability only consumed the main-axis visible length. Track zero-area layouts, invalidate pending viewability updates, and report a zero visible length while collapsed.

Keep RNTester screenshot checks deterministic by waiting for the configured minimumViewTime in the off-screen example and excluding variable callback content from the stable layout screenshot.

Changelog:
[General][Fixed] - Prevent zero-area lists from reporting items as viewable

Differential Revision: D116026116

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 14, 2026
@meta-codesync

meta-codesync Bot commented Aug 14, 2026

Copy link
Copy Markdown

@cipolleschi has exported this pull request. If you are a Meta employee, you can view the originating Diff in D116026116.

Summary:

VirtualizedList treated horizontal lists with zero cross-axis size as visible because viewability only consumed the main-axis visible length. Track zero-area layouts, invalidate pending viewability updates, and report a zero visible length while collapsed.

Keep RNTester screenshot checks deterministic by waiting for the configured `minimumViewTime` in the off-screen example and excluding variable callback content from the stable layout screenshot.

Changelog:
[General][Fixed] - Prevent zero-area lists from reporting items as viewable

Differential Revision: D116026116
@meta-codesync meta-codesync Bot changed the title Handle zero-area layouts in VirtualizedList viewability Handle zero-area layouts in VirtualizedList viewability (#57964) Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant