Skip to content

Fix overflow with Props 2.0 in horizonal scroll view#53872

Closed
lenaic wants to merge 2 commits into
facebook:mainfrom
lenaic:export-D82919365
Closed

Fix overflow with Props 2.0 in horizonal scroll view#53872
lenaic wants to merge 2 commits into
facebook:mainfrom
lenaic:export-D82919365

Conversation

@lenaic
Copy link
Copy Markdown

@lenaic lenaic commented Sep 21, 2025

Summary:
This diff fixes the mismatch between the overflow initial value between the horizontal scroll view component initialization and the React core props instance initial value by applying the same correction as for the vertical scroll view component.

Changelog: [Internal]

Differential Revision: D82919365

Nick Lefever added 2 commits September 21, 2025 10:56
Summary:

The props defined in `YogaStylableProps` define the overflow to be set to `Overflow::Visible` by default.

The scroll view initialized the overflow setting to `Overflow.SCROLL`. This meant that Props 2.0 would only set the overflow prop if it was different from Visible, leading to the scroll view not being configured correctly when asking for the overflow to be visible.

This diff assigns the correct initial value to the scrollview overflow setting only when enabling Props 2.0 to avoid any unexpected behavior changes when not using Props 2.0.

Changelog: [Internal]

Differential Revision: D82919286
Summary:
This diff fixes the mismatch between the overflow initial value between the horizontal scroll view component initialization and the React core props instance initial value by applying the same correction as for the vertical scroll view component.

Changelog: [Internal]

Differential Revision: D82919365
@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 Sep 21, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@lenaic has exported this pull request. If you are a Meta employee, you can view the originating diff in D82919365.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in e1a6c38.

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. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants