Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] automaticallyAdjustKeyboardInsets not shifting scrollview content #46732

Closed

Conversation

zhongwuzw
Copy link
Contributor

Summary:

Fixes #46595 . It seems #37766 broke the automaticallyAdjustKeyboardInsets when input accessory view become first responder.

Changelog:

[IOS] [FIXED] - automaticallyAdjustKeyboardInsets not shifting scrollview content

Test Plan:

Repro please see in ##46595 .

@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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Sep 30, 2024
@zhongwuzw zhongwuzw requested a review from javache October 2, 2024 14:59
@zhongwuzw
Copy link
Contributor Author

Hi @javache, just a friendly reminder— the issue reporter is asking for any updates regarding this matter. Could you please assist in resuming the review? Thank you!

@facebook-github-bot
Copy link
Contributor

@javache has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@zhongwuzw zhongwuzw requested a review from javache October 29, 2024 03:25
if (inputAccessoryView) {
// Text input view is within the inputAccessoryView.
contentDiff = keyboardEndFrame.origin.y - keyboardBeginFrame.origin.y;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still want an early return here? Or should we have a general check for contentDiff == 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to maintain the same logic as the old architecture, which does not perform early return checks or check for contentDiff == 0.

@facebook-github-bot
Copy link
Contributor

@javache has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 30, 2024
@facebook-github-bot
Copy link
Contributor

@javache merged this pull request in 2d9933e.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @zhongwuzw in 2d9933e

When will my fix make it into a release? | How to file a pick request?

blakef pushed a commit that referenced this pull request Dec 9, 2024
…6732)

Summary:
Fixes #46595 . It seems #37766 broke the `automaticallyAdjustKeyboardInsets` when input accessory view become first responder.

[IOS] [FIXED] - automaticallyAdjustKeyboardInsets not shifting scrollview content

Pull Request resolved: #46732

Test Plan: Repro please see in ##46595 .

Reviewed By: cipolleschi

Differential Revision: D65072478

Pulled By: javache

fbshipit-source-id: 7d5d7566438d4bb0e1d50074a953b18866e324d3
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. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

automaticallyAdjustKeyboardInsets not shifting scrollview content
5 participants