Skip to content

Add position type to LayoutMetrics#41819

Closed
joevilches wants to merge 1 commit into
react:mainfrom
joevilches:export-D51412428
Closed

Add position type to LayoutMetrics#41819
joevilches wants to merge 1 commit into
react:mainfrom
joevilches:export-D51412428

Conversation

@joevilches

Copy link
Copy Markdown
Contributor

Summary:
This will be needed in order to access the position type while implementing offsetLeft/Top, which needs to know if a node is static or not to get the proper offset. This is simply making the position type available to be read from LayoutMetrics.

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D51412428

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Dec 6, 2023
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@analysis-bot

analysis-bot commented Dec 6, 2023

Copy link
Copy Markdown
Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 16,517,116 +4,092
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 19,895,941 +4,103
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 7d1a98c
Branch: main

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

Summary:

This will be needed in order to access the position type while implementing offsetLeft/Top, which needs to know if a node is static or not to get the proper offset. This is simply making the position type available to be read from LayoutMetrics. 

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D51412428
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Dec 11, 2023
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 3fb47c5.

joevilches added a commit to joevilches/react-native that referenced this pull request Dec 20, 2023
Summary:
I added position type in D51412428 (react#41819). I didn't notice this == override which makes it so position type in layout metrics will not be updated if it changes.

Changelog: [Internal]

Differential Revision: D52339890
joevilches added a commit to joevilches/react-native that referenced this pull request Dec 20, 2023
Summary:

I added position type in D51412428 (react#41819). I didn't notice this == override which makes it so position type in layout metrics will not be updated if it changes.

Changelog: [Internal]

Differential Revision: D52339890
facebook-github-bot pushed a commit that referenced this pull request Jan 3, 2024
Summary:
Pull Request resolved: #42020

I added position type in D51412428 (#41819). I didn't notice this == override which makes it so position type in layout metrics will not be updated if it changes.

To use this cpp 20 feature we needed to change a few buck files which is also done here

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D52339890

fbshipit-source-id: e77ee092477dbf786e4a72e6a33138ccbc450645
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