Skip to content

Commit

Permalink
Merge branch 'master' into master-milq
Browse files Browse the repository at this point in the history
* master:
  Invalidate intrinsic content size when attributed text changes
  • Loading branch information
runmad committed Jan 30, 2014
2 parents 4c82aca + ef4b035 commit 9c44867
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TTTAttributedLabel/TTTAttributedLabel.m
Expand Up @@ -406,6 +406,12 @@ - (void)setAttributedText:(NSAttributedString *)text {

[self setNeedsFramesetter];
[self setNeedsDisplay];

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 60000
if ([self respondsToSelector:@selector(invalidateIntrinsicContentSize)]) {
[self invalidateIntrinsicContentSize];
}
#endif
}

- (void)setNeedsFramesetter {
Expand Down

0 comments on commit 9c44867

Please sign in to comment.