Skip to content

Commit

Permalink
Fix Sumi-Interactive#101: heightForMessageLabel now uses messageLabel…
Browse files Browse the repository at this point in the history
… text for height calculation.
  • Loading branch information
SpacyRicochet committed Jun 1, 2015
1 parent 747e53d commit 4e96699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SIAlertView/SIAlertView.m
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ - (CGFloat)heightForMessageLabel

// NSString class method: boundingRectWithSize:options:attributes:context is
// available only on ios7.0 sdk.
CGRect rect = [self.titleLabel.text boundingRectWithSize:CGSizeMake(CONTAINER_WIDTH - CONTENT_PADDING_LEFT * 2, maxHeight)
CGRect rect = [self.messageLabel.text boundingRectWithSize:CGSizeMake(CONTAINER_WIDTH - CONTENT_PADDING_LEFT * 2, maxHeight)
options:NSStringDrawingUsesLineFragmentOrigin
attributes:attributes
context:nil];
Expand Down

0 comments on commit 4e96699

Please sign in to comment.