Iphone 6+ / Landscape orientation : The chat tableview was properly refreshed while enlarging/reducing it.

This commit is contained in:
Yannick Le Collen
2014-12-18 10:50:31 +01:00
parent 66ad9dc3b3
commit cd2bd55652
3 changed files with 13 additions and 0 deletions
@@ -26,4 +26,12 @@
@implementation OutgoingMessageTableCell
- (void)layoutSubviews {
[super layoutSubviews];
// ensure that the text is still aligned to the left side of the screen
// even during animation while enlarging/reducing the viewcontroller (with UISplitViewController)
CGFloat leftInset = self.message.maxTextViewWidth - self.message.contentSize.width;
self.messageTextView.contentInset = UIEdgeInsetsMake(0, leftInset, 0, -leftInset);
}
@end