-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[TextInput] Padding in Text and TextInput renders slightly differently #1287
Comments
You might want to take a look at #1229 as it looks like what you're trying to do has already been implemented in that PR. |
@nicklockwood: Thanks, missed that one. This bug still stands though, although maybe not as important :-) |
Could you fork this and modify it to produce the same bug? Thanks @oblador! |
Made an example of this on RNPlay. Also notice how the vertical padding is different. |
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/textinput-padding-in-text-and-textinput-renders-slightly-differently ProductPains helps the community prioritize the most important issues thanks to its voting feature. Also, if this issue is a bug, please consider sending a PR with a fix. We rely on the community to provide |
There are bigger problems to tackle :-) |
@oblador is this still an issue? |
I'm trying to build a autogrowing
TextInput
and is using a shadowText
component to measure the text (I'm sure there's a better way, maybe exposeNSString.boundingRectWithSize
). However I noticed that the padding is slightly differently rendered on the two, it seemsTextInput
has an extra 2px (or 1pt?) horizontal padding causing the text to wrap differently.padding: 0
.TextInput
first,Text
last.The text was updated successfully, but these errors were encountered: