-
Notifications
You must be signed in to change notification settings - Fork 146
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
Wrong popup height when using attributed subtitle string #63
Comments
Hey @tvlc, Thanks for using FCAlertView. Will look into this. @digitalcatnip Would you mind taking a look at what might be causing this. Thanks! |
Sorry, just saw this - I will take a look when I have a chance! |
Any progress? See three dots added at the end of the string, when the string has been truncated and missing last line of the attributed text |
@digitalcatnip Have you already a chance to look at it? |
I found a bug in implementation of drawRect method - it does not properly calculate the bounding box size for attributed subtitle. CGSize boundingBox;
if (descriptionLabel.attributedText == nil) {
boundingBox = [descriptionLabel.text boundingRectWithSize:constraint
options:NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading
attributes:@{NSFontAttributeName:descriptionLabel.font}
context:context].size;
} else {
boundingBox = [descriptionLabel.attributedText boundingRectWithSize:constraint
options:NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading
context:context].size;
} |
Hi, there is a bug in calculation of popup height when using attributed string as a subtitle, see scrennshots.
Atributes used:
`
`
The text was updated successfully, but these errors were encountered: