Skip to content

Long text cut off when using 'messageDefaultHidden' #7

@stuartmcmahon

Description

@stuartmcmahon

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions