mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 11:30:50 +02:00
Iphone 6+ / Landscape orientation : The chat tableview was properly refreshed while enlarging/reducing it.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user