Skip to content

Add more clipping examples#44735

Closed
NickGerleman wants to merge 3 commits into
facebook:mainfrom
NickGerleman:export-D57999676
Closed

Add more clipping examples#44735
NickGerleman wants to merge 3 commits into
facebook:mainfrom
NickGerleman:export-D57999676

Conversation

@NickGerleman
Copy link
Copy Markdown
Contributor

Summary:
Add some more examples of overflow clipping for scrollview, text, textinput.

Changelog: [Internal]

Differential Revision: D57999676

…44732)

Summary:

`getBorderBoxPath()` and `getPaddingBoxPath()` currently assume `updatePath()` will set a path, but this does not happen on Android 24 emulators where it seems like `onBoundsChanged` isn't called to set flag for needing update.

But, the current design tries to be lazy with path generation, and these are probably more expensive to clip, so we should really make these functions return nullable value, then fall back to rect, like the internals of `CSSBackgroundDrawable`, and how I misremembered these as working in the view code added originally in D57668976.

Changelog: [Internal]

Differential Revision: D57951852
Summary:

We are returning a Path to callers, which shouldn't be mutated. This isn't really safe. Return a copy to external callers instead, if they need a path to work with.

Changelog: [Internal]

Differential Revision: D57996157
Summary:
Add some more examples of overflow clipping for scrollview, text, textinput.

Changelog: [Internal]

Differential Revision: D57999676
@facebook-github-bot facebook-github-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 May 31, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D57999676

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 19,543,692 +363
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 22,913,352 +395
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: c2c9b27
Branch: main

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in c046198.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label May 31, 2024
kosmydel pushed a commit to kosmydel/react-native that referenced this pull request Jun 11, 2024
Summary:
Pull Request resolved: facebook#44735

Add some more examples of overflow clipping for scrollview, text, textinput.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D57999676

fbshipit-source-id: dfede321b2c7c61dda3afaf2aea784f6c295c384
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. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants