Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the height result of onContentSizeChange callback on iOS (#41803)
Summary: The height returned by TextInput's 'onContentSizeChange' callback method is incorrect Because, the borderwidth and horizontal padding are not subtracted from the content width used to calculate the height of the text. I have seen many people in the same situation in many issues. When I solved, some people suggested I submit a PR. More information can be found here [https://github.com/facebook/react-native/issues/35234](https://github.com/facebook/react-native/issues/35234#issuecomment-1831141903) ## Changelog: [IOS] [FIXED] - the wrong height result of onContentSizeChange callback <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: #41803 Test Plan: CI Green Reviewed By: NickGerleman Differential Revision: D51891909 Pulled By: dmytrorykun fbshipit-source-id: fa297155ebdfc933cf0ea6bcdab37d7410809e8c
- Loading branch information