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

Space between TextField and Left Icon #1277

Open
CTNCardoso opened this issue Oct 12, 2019 · 7 comments
Open

Space between TextField and Left Icon #1277

CTNCardoso opened this issue Oct 12, 2019 · 7 comments

Comments

@CTNCardoso
Copy link

CTNCardoso commented Oct 12, 2019

Captura de Tela 2019-10-12 às 20 25 41

Problem is happening with iOS 13.

I tested it on iOS 11 and 12 and it worked perfectly.

@Shempaiii
Copy link

Any workaround?

@OrkhanAlikhanov
Copy link
Contributor

Is that happening after iOS 13?

You can try playing with textField.textInsets.left = 10

@CTNCardoso
Copy link
Author

Yes, it solves the EditText problem, but it generates a problem with label.
Captura de Tela 2019-10-16 às 08 30 43
Captura de Tela 2019-10-16 às 08 30 30

Yes, this issue is only occurring on iOS 13.

@OrkhanAlikhanov
Copy link
Contributor

Can you try textField.leftViewOffset = 32, default value is 16

@CTNCardoso
Copy link
Author

Using "textField.textInsets.left = 20" and "textField.leftViewOffset = 32"
Captura de Tela 2019-10-16 às 08 48 09

This moved the divider.

@jbdujardin
Copy link

Is there a fix for this issue?

@febinrv
Copy link

febinrv commented Dec 23, 2019

Yes, the issue is still there
I have tried
usernameTextField.textInsets.left = 8
usernameTextField.leftViewOffset = -8

But not exactly fixed my issue. the divider origin x is wrong now.

fanij added a commit to fanij/Material that referenced this issue Feb 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

6 participants