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

Commit

Permalink
Merge pull request #116 from mjgaylord/patch-1
Browse files Browse the repository at this point in the history
Fix to respond to AutoLayout
  • Loading branch information
Sebastien C. Thiebaud committed Oct 30, 2014
2 parents 73070b9 + 63e9b3a commit 20ed8b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions STTweetLabel/STTweetLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ - (CGSize)suggestedFrameSizeToFitEntireStringConstraintedToWidth:(CGFloat)width
return [_textView sizeThatFits:CGSizeMake(width, CGFLOAT_MAX)];
}

- (CGSize) intrinsicContentSize {
CGSize size = [self suggestedFrameSizeToFitEntireStringConstraintedToWidth:CGRectGetWidth(self.frame)];
return CGSizeMake(size.width, size.height + 1);
}

#pragma mark - Private methods

- (NSArray *)hotWordsList {
Expand Down

0 comments on commit 20ed8b1

Please sign in to comment.