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

fix: make cursor center for different line height #36586

Closed

Conversation

soumyajit4419
Copy link
Contributor

@soumyajit4419 soumyajit4419 commented Mar 22, 2023

Summary

Currently in multiline input the cursor touches the previous line.
So this reduces its height sets its position so that I does not touch previous line.
This PR will also fix the issue #28012 (Problem with TextInput lineHeight on iOS)
This RP will fix the issue caused in
PR

Changelog

[IOS] [ADDED] - Fixed cursor height on multiline text input

Test Plan

Tested for different cursor height

Screen.Recording.2023-03-22.at.11.17.31.PM.mov
Screen.Recording.2023-03-22.at.11.19.21.PM.mov

@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 Mar 22, 2023
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,519,151 +0
android hermes armeabi-v7a 7,835,230 +0
android hermes x86 8,999,161 +0
android hermes x86_64 8,854,318 +0
android jsc arm64-v8a 9,140,510 +0
android jsc armeabi-v7a 8,332,650 +0
android jsc x86 9,195,218 +0
android jsc x86_64 9,453,168 +0

Base commit: cf43f9c
Branch: main

@facebook-github-bot
Copy link
Contributor

@genkikondo 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 Mar 23, 2023
@facebook-github-bot
Copy link
Contributor

@genkikondo merged this pull request in 987c6fd.

@situchan
Copy link

situchan commented Mar 24, 2023

@genkikondo please check my concern here. This PR should still not be merged.

bug.mp4

@genkikondo
Copy link
Contributor

@situchan I'm reverting now. Thanks so much for flagging.

@genkikondo genkikondo reopened this Mar 24, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been reverted by ebc97a6.

jeongshin pushed a commit to jeongshin/react-native that referenced this pull request May 7, 2023
Summary:
Currently in multiline input the cursor touches the previous line.
So this reduces its height sets its position so that I does not touch previous line.
This PR will also fix the issue facebook#28012 (Problem with TextInput lineHeight on iOS)
This RP will fix the issue caused in
[PR](facebook#36484)

Changelog:
[iOS][Added] - Fixed cursor height on multiline text input

Pull Request resolved: facebook#36586

Test Plan:
Tested for different cursor height

https://user-images.githubusercontent.com/46092576/227004355-3886a0b5-7cdb-4fdc-a16b-3c4abb729737.mov

https://user-images.githubusercontent.com/46092576/227004361-48099f81-9f52-460d-8ae8-d0ddb09dc47d.mov

Reviewed By: javache

Differential Revision: D44307457

Pulled By: genkikondo

fbshipit-source-id: afeea5605ed8557cdeec1e62324c85665ce367d6
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
Currently in multiline input the cursor touches the previous line.
So this reduces its height sets its position so that I does not touch previous line.
This PR will also fix the issue facebook#28012 (Problem with TextInput lineHeight on iOS)
This RP will fix the issue caused in
[PR](facebook#36484)

Changelog:
[iOS][Added] - Fixed cursor height on multiline text input

Pull Request resolved: facebook#36586

Test Plan:
Tested for different cursor height

https://user-images.githubusercontent.com/46092576/227004355-3886a0b5-7cdb-4fdc-a16b-3c4abb729737.mov

https://user-images.githubusercontent.com/46092576/227004361-48099f81-9f52-460d-8ae8-d0ddb09dc47d.mov

Reviewed By: javache

Differential Revision: D44307457

Pulled By: genkikondo

fbshipit-source-id: afeea5605ed8557cdeec1e62324c85665ce367d6
@github-actions
Copy link

This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Sep 21, 2023
@github-actions
Copy link

This PR was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this Sep 28, 2023
@popejrh19
Copy link

popejrh19 commented Sep 28, 2023 via email

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. Reverted Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants