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 3329bae7bf
commit 3f3d81b8b6
2 changed files with 5 additions and 0 deletions

View file

@ -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;
}

View file

@ -0,0 +1 @@
Fixed timeline layout issues for reactions and attachments