-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
FIX: Change the method "sizeWithFont:" in DDBubble.m to:
-(CGSize)sizeWithFont:(UIFont*)font
{
NSAttributedString *attributedText =
[[NSAttributedString alloc] initWithString:_title
attributes:@{NSFontAttributeName: font}];
CGRect rect = [attributedText boundingRectWithSize:(CGSize){[[UIScreen mainScreen] bounds].size.width - (PADDING*3), CGFLOAT_MAX}
options:NSStringDrawingUsesLineFragmentOrigin
context:nil];
CGSize result = rect.size;
return CGSizeMake(result.width + (PADDING*3), result.height + (PADDING*2.5));
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels