Material-components-ios: [TextField] Error Text Overflows Text Field Width

Created on 15 Nov 2018  路  10Comments  路  Source: material-components/material-components-ios

When setting MDCTextField error text to a long string, the error text runs past the width of the text field itself.


Internal data

[TextFields] high Bug

Most helpful comment

You have that feature at v93.2.0

MDCTextField *textField = [[MDCTextField alloc] init];
textField.leadingUnderlineLabel.numberOfLines = 0;
textField.leadingUnderlineLabel.lineBreakMode = NSLineBreakByWordWrapping;

Release notes : https://github.com/material-components/material-components-ios/releases/tag/v93.2.0

All 10 comments

Hi, is this feature still on the roadmap? I will soon need to make error label on multiple lines and I don't want to use another lib ;)
Thanks

I'll ask @randallli to re毛valuate the priority of this work in our backlog.

Hello, did you have any idea of when this will be fixed ?

Any update on this issue? It has been a long time since reported.

Any updates?

How do I implement multiline error text?

You have that feature at v93.2.0

MDCTextField *textField = [[MDCTextField alloc] init];
textField.leadingUnderlineLabel.numberOfLines = 0;
textField.leadingUnderlineLabel.lineBreakMode = NSLineBreakByWordWrapping;

Release notes : https://github.com/material-components/material-components-ios/releases/tag/v93.2.0

You have that feature at v93.2.0

MDCTextField *textField = [[MDCTextField alloc] init];
textField.leadingUnderlineLabel.numberOfLines = 0;
textField.leadingUnderlineLabel.lineBreakMode = NSLineBreakByWordWrapping;

Release notes : https://github.com/material-components/material-components-ios/releases/tag/v93.2.0

Thanks Silvaric

Is there a way to customize the border color of the texfield when setting errors?

@Fernandez-Aldo for MDCTextFields you would do this by setting the errorColor on the controller

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jverkoey picture jverkoey  路  7Comments

zishanj picture zishanj  路  4Comments

brianjmoore picture brianjmoore  路  5Comments

croccio picture croccio  路  3Comments

ulaserdegor picture ulaserdegor  路  4Comments