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 10, 2022
1 parent d7ab536 commit 956d38f
Showing 1 changed file with 1 addition 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

0 comments on commit 956d38f

Please sign in to comment.