Skip to content

Remove syncAndroidClipToPaddingWithOverflow feature flag (#56467)#56467

Closed
fabriziocucci wants to merge 1 commit intofacebook:mainfrom
fabriziocucci:export-D101153619
Closed

Remove syncAndroidClipToPaddingWithOverflow feature flag (#56467)#56467
fabriziocucci wants to merge 1 commit intofacebook:mainfrom
fabriziocucci:export-D101153619

Conversation

@fabriziocucci
Copy link
Copy Markdown
Contributor

@fabriziocucci fabriziocucci commented Apr 16, 2026

Summary:

Remove the syncAndroidClipToPaddingWithOverflow feature flag and all associated logic.
This flag synced Android clipToPadding with the CSS overflow property, but
clipToPadding has no effect when padding is 0 (the default for most RN views),
making the entire mechanism insufficient. We will replace this with setClipBounds()
in a follow-up diff (T253147322).

  • Remove clipToPadding logic from ReactViewGroup.initView() and overflow setter
  • Remove getClipToPadding() overrides from ReactScrollView, ReactHorizontalScrollView
  • Regenerate ReactNestedScrollView from updated ReactScrollView source
  • Remove hardcoded override from ReactNativeFeatureFlagsOverrides_PanelApp
  • Remove flag definition from ReactNativeFeatureFlags.config.js and regenerate all
    feature flag infrastructure files

Changelog: [Internal]

Reviewed By: zeyap

Differential Revision: D101153619

@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 Apr 16, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Apr 16, 2026

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

@meta-codesync meta-codesync Bot changed the title Remove syncAndroidClipToPaddingWithOverflow feature flag Remove syncAndroidClipToPaddingWithOverflow feature flag (#56467) Apr 23, 2026
fabriziocucci added a commit to fabriziocucci/react-native that referenced this pull request Apr 23, 2026
)

Summary:

Remove the `syncAndroidClipToPaddingWithOverflow` feature flag and all associated logic.
This flag synced Android `clipToPadding` with the CSS `overflow` property, but
`clipToPadding` has no effect when padding is 0 (the default for most RN views),
making the entire mechanism insufficient. We will replace this with `setClipBounds()`
in a follow-up diff (T253147322).

- Remove clipToPadding logic from `ReactViewGroup.initView()` and `overflow` setter
- Remove `getClipToPadding()` overrides from ReactScrollView, ReactHorizontalScrollView
- Regenerate ReactNestedScrollView from updated ReactScrollView source
- Remove hardcoded override from ReactNativeFeatureFlagsOverrides_PanelApp
- Remove flag definition from ReactNativeFeatureFlags.config.js and regenerate all
  feature flag infrastructure files

Changelog: [Internal]

Reviewed By: zeyap

Differential Revision: D101153619
fabriziocucci added a commit to fabriziocucci/react-native that referenced this pull request Apr 23, 2026
)

Summary:
Pull Request resolved: facebook#56467

Remove the `syncAndroidClipToPaddingWithOverflow` feature flag and all associated logic.
This flag synced Android `clipToPadding` with the CSS `overflow` property, but
`clipToPadding` has no effect when padding is 0 (the default for most RN views),
making the entire mechanism insufficient. We will replace this with `setClipBounds()`
in a follow-up diff (T253147322).

- Remove clipToPadding logic from `ReactViewGroup.initView()` and `overflow` setter
- Remove `getClipToPadding()` overrides from ReactScrollView, ReactHorizontalScrollView
- Regenerate ReactNestedScrollView from updated ReactScrollView source
- Remove hardcoded override from ReactNativeFeatureFlagsOverrides_PanelApp
- Remove flag definition from ReactNativeFeatureFlags.config.js and regenerate all
  feature flag infrastructure files

Changelog: [Internal]

Reviewed By: zeyap

Differential Revision: D101153619
)

Summary:

Remove the `syncAndroidClipToPaddingWithOverflow` feature flag and all associated logic.
This flag synced Android `clipToPadding` with the CSS `overflow` property, but
`clipToPadding` has no effect when padding is 0 (the default for most RN views),
making the entire mechanism insufficient. We will replace this with `setClipBounds()`
in a follow-up diff (T253147322).

- Remove clipToPadding logic from `ReactViewGroup.initView()` and `overflow` setter
- Remove `getClipToPadding()` overrides from ReactScrollView, ReactHorizontalScrollView
- Regenerate ReactNestedScrollView from updated ReactScrollView source
- Remove hardcoded override from ReactNativeFeatureFlagsOverrides_PanelApp
- Remove flag definition from ReactNativeFeatureFlags.config.js and regenerate all
  feature flag infrastructure files

Changelog: [Internal]

Reviewed By: zeyap

Differential Revision: D101153619
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Apr 24, 2026

This pull request has been merged in c0adcea.

@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label Apr 24, 2026
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @fabriziocucci in c0adcea

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.

2 participants