Skip to content

Commit

Permalink
Attempt at fixing [CALayer animationForKey] crashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed May 20, 2022
1 parent 71ac5c2 commit 0d25159
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Riot/Modules/MatrixKit/Models/Room/MXKRoomBubbleCellData.m
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ - (CGSize)textContentSize:(NSAttributedString*)attributedText removeVerticalInse
// Select the right text view for measurement
UITextView *selectedTextView = (removeVerticalInset ? measurementTextViewWithoutInset : measurementTextView);

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

CGSize size = [selectedTextView sizeThatFits:selectedTextView.frame.size];
Expand Down
1 change: 1 addition & 0 deletions changelog.d/pr-6188.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added attempt at fixing random crashes while calculating timeline cell heights.

0 comments on commit 0d25159

Please sign in to comment.