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] TextInput with similar font size and line height doesn't scroll with content #22637

Closed
3 tasks done
shaundon opened this issue Dec 13, 2018 · 1 comment
Closed
3 tasks done
Labels
Bug Component: Text Component: TextInput Related to the TextInput component. Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@shaundon
Copy link

shaundon commented Dec 13, 2018

Environment

OS: macOS 10.14.1
Node: 8.14.0
Yarn: 1.3.2
npm: 6.4.1
Watchman: 4.9.0
Xcode: Xcode 10.0 Build version 10A255
Android Studio: 3.2 AI-181.5540.7.32.5056338

Packages: (wanted => installed)
react: 16.6.1 => 16.6.1
react-native: 0.57.7 => 0.57.7

Description

On iOS, if a TextInput has similar lineHeight and fontSize style props, the field doesn't scroll when the length of the value overflows its container.

I've done some experiments with trial and error and it appears that when they're within 2pt of each other, the issue happens.

ezgif-4-8a9aed2dd12d

Reproducible Demo

Here's a Snack with multiple test cases to illustrate the issue: https://snack.expo.io/B1JHzT1lE

@cpojer
Copy link
Contributor

cpojer commented Apr 2, 2019

You are right, this seems like this is a real issue but unfortunately it's unlikely anyone will be able to spend time on this anytime soon. I'm going to close this issue but we are more than happy to receive a pull request with a fix for this!

@cpojer cpojer closed this as completed Apr 2, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Apr 2, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Component: Text Component: TextInput Related to the TextInput component. Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants