Beniamiiin/BSErrorMessageView

Long text cut off when using 'messageDefaultHidden'

Opened this issue · 0 comments

If you use 'messageDefaultHidden=NO' on a text field with a long error message the error message appears in the text field, but cut off. I'd expect it to simply not appear (since it's too long), then appear in a popup when the error button is pressed.

To reproduce change the long text example in the source code:

- (void)setupLongTextField
{
    [self defaultSetupTextField:self.longMessageTextField];

    [self.longMessageTextField bs_setupErrorMessageViewWithMessage:@"The error message was too long to show in the text box hence it will come up as an alert avoiding clipping of messages!, you can customize the alert button text as well!"];
    self.longMessageTextField.errorMessageView.messageDefaultHidden = NO;
}