-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 #2935
Comments
Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a snack.expo.io link or link to a GitHub repo under your username). Can you provide a minimal repro which demonstrates the issue? A repro will help us debug the issue faster. Please try to keep the repro as small as possible and make sure that we can run it without additional setup. |
Couldn't find version numbers for the following packages in the issue:
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3. |
@Polypants thanks for creating an issue. |
@p-syche @Polypants https://snack.expo.dev/@bekabatmanashvili/textinput-with-paddings |
padding work like a margin, pls fix it. |
Look at the outlined textinput in your example. Padding is being applied to the outside of the input... Its acting like margin |
I too am grappling with this bug. @Polypants , does it make sense what HeadJK is saying? You can see the issue in your own snack. In your second example, you have an outlined text input and when you add the paddingLeft it should not move the outline. It's adding the padding outside the outline but it should add it inside the outline. Right now the only workaround I've found is: do not use mode "outline" and instead add my own border. Visually, it doesn't look great but it addresses the padding issue. It's my workaround until this is fixed. |
I too am grappling with this bug. @p-syche , does it make sense what HeadJK is saying? You can see the issue in your own snack. In your second example, you have an outlined text input and when you add the paddingLeft it should not move the outline. It's adding the padding outside the outline but it should add it inside the outline. Right now the only workaround I've found is: do not use mode "outline" and instead add my own border. Visually, it doesn't look great but it addresses the padding issue. It's my workaround until this is fixed. |
Hello, please try to install the library from the branch |
Not sure if this is a request, bug or what but jut want to point this out and ask why it's like this first.
Padding adds space to the outside of the TextInput element. Not inside, between the edges of the container and the text inside it. Seems like a bug to me but for now I guess I'm just asking why it's like that. I can't attempt to fix an issue with multiline inputs on android because of it.
Added padding doesn't increase the size of the area that the backgroundColor is applied to, as another example of what one would expect to happen.
The text was updated successfully, but these errors were encountered: