Skip to content

Fix viewability for zero-sized lists (#58000) - #58074

Closed
Abbondanzo wants to merge 1 commit into
react:mainfrom
Abbondanzo:export-D116699497
Closed

Fix viewability for zero-sized lists (#58000)#58074
Abbondanzo wants to merge 1 commit into
react:mainfrom
Abbondanzo:export-D116699497

Conversation

@Abbondanzo

Copy link
Copy Markdown
Contributor

Summary:

VirtualizedList viewability only considered the scroll-axis viewport length. A horizontal list with zero height could therefore report items as viewable. Record the cross-axis length in the same scroll metrics snapshot and require both viewport dimensions to be non-zero for viewability.

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

Reviewed By: zeyap

Differential Revision: D116699497

Summary:
VirtualizedList viewability only considered the scroll-axis viewport length. A horizontal list with zero height could therefore report items as viewable. Record the cross-axis length in the same scroll metrics snapshot and require both viewport dimensions to be non-zero for viewability.
Changelog:
[General][Fixed] - Prevent zero-sized lists from reporting viewable items
Reviewed By: zeyap
Differential Revision: D116699497
@meta-clameta-claBot 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 22, 2026
@meta-codesync

Copy link
Copy Markdown

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

@meta-codesyncmeta-codesyncBot added the Merged This PR has been merged. label Aug 24, 2026
@meta-codesync

Copy link
Copy Markdown

This pull request has been merged in c057b1f.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.meta-exportedp: FacebookPartner: FacebookPartner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@Abbondanzo