Skip to content

Remove position type override on scroll view sticky headers#47498

Closed
joevilches wants to merge 1 commit into
facebook:mainfrom
joevilches:export-D65626544
Closed

Remove position type override on scroll view sticky headers#47498
joevilches wants to merge 1 commit into
facebook:mainfrom
joevilches:export-D65626544

Conversation

@joevilches
Copy link
Copy Markdown
Contributor

Summary:
I am trying to help someone with creating a sticky header on a scrollview, specifically one that floats on the side of the scrollview instead of the top Currently we can't really do that, since utilizing position: absolute to layout this properly will get overriden by the header styles changed in this diff

This was only added since static was the default and we needed to apply zIndex. With proper static implementation that is no longer the case, so I think it makes sense to remove this to support this use case.

Changelog: [General] [Breaking] - position of sticky headers on ScrollView will now be taken into account

Reviewed By: rozele

Differential Revision: D65626544

Summary:
I am trying to help someone with creating a sticky header on a scrollview, specifically one that floats on the side of the scrollview instead of the top Currently we can't really do that, since utilizing `position: absolute` to layout this properly will get overriden by the header styles changed in this diff

This was only added since static was the default and we needed to apply zIndex. With proper static implementation that is no longer the case, so I think it makes sense to remove this to support this use case.

Changelog: [General] [Breaking] - `position` of sticky headers on `ScrollView` will now be taken into account

Reviewed By: rozele

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

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in cbab004.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @joevilches in cbab004

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants