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

Long text gets cut off even if MAX_LINE_COUNT is set to a high number #85

Open
PhillipApps opened this issue Oct 11, 2014 · 4 comments
Open

Comments

@PhillipApps
Copy link

I'm having this issue. The min line count iss 5, the max is 15. Nevertheless, long messages gets cut off. I don't want a textview, i would like the text to be shown as it should. Any workaround for this?

@onmyway133
Copy link

+1

1 similar comment
@iambatoan
Copy link

+1

@bartsidee
Copy link

replace line 846-861in SIAlertView.m with

    #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_7_0
        CGRect rect = [self.message boundingRectWithSize:CGSizeMake(CONTAINER_WIDTH - CONTENT_PADDING_LEFT * 2, maxHeight)
                                                     options:NSStringDrawingUsesLineFragmentOrigin
                                                  attributes:@{NSFontAttributeName:self.messageLabel.font}
                                                     context:nil];
        return MAX(minHeight, ceil(rect.size.height));
    #else

https://github.com/Sumi-Interactive/SIAlertView/blob/master/SIAlertView/SIAlertView.m#L846-L861

@PhillipApps
Copy link
Author

Worked amazing!

ebothmann added a commit to ebothmann/SIAlertView that referenced this issue Feb 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants