mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 03:20:50 +02:00
Force a layout on the room bubble cell messageTextView to get a correct frame
This commit is contained in:
committed by
Stefan Ceriu
parent
8a894d7e49
commit
4e4a3e0ee8
@@ -623,6 +623,10 @@ NSString *const kMXKRoomBubbleCellKeyVerificationIncomingRequestDeclinePressed =
|
||||
selectedComponentHeight = roomBubbleTableViewCell.frame.size.height - selectedComponentPositionY;
|
||||
}
|
||||
|
||||
// Force the textView used underneath to layout its frame properly
|
||||
[roomBubbleTableViewCell setNeedsLayout];
|
||||
[roomBubbleTableViewCell layoutIfNeeded];
|
||||
|
||||
selectedComponenContentViewYOffset = roomBubbleTableViewCell.messageTextView.frame.origin.y;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user