Skip to content

Fix scrollview overflow prop not set with Props 2.0#53871

Closed
lenaic wants to merge 1 commit into
facebook:mainfrom
lenaic:export-D82919286
Closed

Fix scrollview overflow prop not set with Props 2.0#53871
lenaic wants to merge 1 commit into
facebook:mainfrom
lenaic:export-D82919286

Conversation

@lenaic
Copy link
Copy Markdown

@lenaic lenaic commented Sep 21, 2025

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:
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
@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 D82919286.

lenaic pushed a commit to lenaic/react-native-macos that referenced this pull request Sep 21, 2025
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
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Sep 22, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in e314f61.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by Nick Lefever in e314f61

When will my fix make it into a release? | How to file a pick request?

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.

3 participants