Skip to content

Commit

Permalink
Fix timeline items text height calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Sep 11, 2022
1 parent d7ab536 commit 8f9edde
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 @@ -534,7 +534,7 @@ - (CGSize)textContentSize:(NSAttributedString*)attributedText removeVerticalInse
CGFloat horizontalInset = measurementTextView.textContainer.lineFragmentPadding * 2;

CGSize size = [attributedText boundingRectWithSize:CGSizeMake(_maxTextViewWidth - horizontalInset, CGFLOAT_MAX)
options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading
options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading | NSStringDrawingUsesDeviceMetrics
context:nil].size;

//In iOS 7 and later, this method returns fractional sizes (in the size component of the returned rectangle);
Expand Down
1 change: 1 addition & 0 deletions changelog.d/pr-6702.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix timeline items text height calculation

0 comments on commit 8f9edde

Please sign in to comment.