From 4e4a3e0ee8620ebd6a7f90ca7a4ccc74f42ab01e Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Wed, 9 Nov 2022 12:08:31 +0200 Subject: [PATCH] Force a layout on the room bubble cell messageTextView to get a correct frame --- Riot/Categories/MXKRoomBubbleTableViewCell+Riot.m | 4 ++++ changelog.d/pr-7064.bugfix | 1 + 2 files changed, 5 insertions(+) create mode 100644 changelog.d/pr-7064.bugfix diff --git a/Riot/Categories/MXKRoomBubbleTableViewCell+Riot.m b/Riot/Categories/MXKRoomBubbleTableViewCell+Riot.m index fe01f6887..a7bfd69f1 100644 --- a/Riot/Categories/MXKRoomBubbleTableViewCell+Riot.m +++ b/Riot/Categories/MXKRoomBubbleTableViewCell+Riot.m @@ -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; } diff --git a/changelog.d/pr-7064.bugfix b/changelog.d/pr-7064.bugfix new file mode 100644 index 000000000..9a50c31d4 --- /dev/null +++ b/changelog.d/pr-7064.bugfix @@ -0,0 +1 @@ +Fixed timeline layout issues for reactions and attachments \ No newline at end of file