Skip to content

Remove syncAndroidClipToPaddingWithOverflow feature flag#56467

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

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

Conversation

@fabriziocucci
Copy link
Copy Markdown
Contributor

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

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

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.

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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant