Force a layout on the room bubble cell messageTextView to get a correct frame

This commit is contained in:
Stefan Ceriu
2022-11-09 12:08:31 +02:00
committed by Stefan Ceriu
parent 8a894d7e49
commit 4e4a3e0ee8
2 changed files with 5 additions and 0 deletions
@@ -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;
}