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 #88 from RyanCopley/master
Browse files Browse the repository at this point in the history
Getting height of STTweetLabel
  • Loading branch information
Sebastien C. Thiebaud committed Apr 8, 2014
2 parents 379845a + 834b05c commit c8c44db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions STTweetLabel/STTweetLabel.m
Expand Up @@ -225,6 +225,8 @@ - (void)updateText
_textView.textContainer.lineFragmentPadding = 0;
_textView.textContainerInset = UIEdgeInsetsZero;
_textView.userInteractionEnabled = NO;
[_textView sizeToFit];
self.frame = CGRectMake(self.frame.origin.x, self.frame.origin.y, self.frame.size.width, _textView.frame.size.height);
[self addSubview:_textView];
}

Expand Down

0 comments on commit c8c44db

Please sign in to comment.