Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Commit

Permalink
Change comment that doesn't make sense
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongregori committed Apr 19, 2012
1 parent f7ebaeb commit 7c5dea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTTAttributedLabel.m
Expand Up @@ -600,7 +600,7 @@ - (CGRect)textRectForBounds:(CGRect)bounds limitedToNumberOfLines:(NSInteger)num

CGRect textRect = bounds;

// First, adjust the text to be in the center vertically, if the text size is smaller than the drawing rect
// Adjust the text to be in the center vertically, if the text size is smaller than bounds
CGSize textSize = CTFramesetterSuggestFrameSizeWithConstraints(self.framesetter, CFRangeMake(0, [self.attributedText length]), NULL, bounds.size, NULL);
textSize = CGSizeMake(ceilf(textSize.width), ceilf(textSize.height)); // Fix for iOS 4, CTFramesetterSuggestFrameSizeWithConstraints sometimes returns fractional sizes

Expand Down

0 comments on commit 7c5dea5

Please sign in to comment.