Skip to content

Commit

Permalink
Fixes /issues/6441 - Incorrect timeline item text height calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Nov 8, 2022
1 parent b1d498d commit 603b7e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Riot/Modules/MatrixKit/Models/Room/MXKRoomBubbleCellData.m
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,9 @@ - (CGSize)textContentSize:(NSAttributedString*)attributedText removeVerticalInse

selectedTextView.frame = CGRectMake(0, 0, _maxTextViewWidth, 0);
selectedTextView.attributedText = attributedText;

// Force the layout manager to layout the text, fixes problems starting iOS 16
[selectedTextView.layoutManager ensureLayoutForTextContainer:selectedTextView.textContainer];

CGSize size = [selectedTextView sizeThatFits:selectedTextView.frame.size];

Expand Down

0 comments on commit 603b7e5

Please sign in to comment.