From b0a377702622c0ac3017e55a32e2ad5feb27b4c7 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Sat, 10 Sep 2022 20:42:12 +0300 Subject: [PATCH] Fix timeline items text height calculation --- Riot/Modules/MatrixKit/Models/Room/MXKRoomBubbleCellData.m | 2 +- changelog.d/pr-6702.bugfix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/pr-6702.bugfix diff --git a/Riot/Modules/MatrixKit/Models/Room/MXKRoomBubbleCellData.m b/Riot/Modules/MatrixKit/Models/Room/MXKRoomBubbleCellData.m index 1a09986090..2cd44566e7 100644 --- a/Riot/Modules/MatrixKit/Models/Room/MXKRoomBubbleCellData.m +++ b/Riot/Modules/MatrixKit/Models/Room/MXKRoomBubbleCellData.m @@ -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); diff --git a/changelog.d/pr-6702.bugfix b/changelog.d/pr-6702.bugfix new file mode 100644 index 0000000000..af2b8f1546 --- /dev/null +++ b/changelog.d/pr-6702.bugfix @@ -0,0 +1 @@ +Fix timeline items text height calculation \ No newline at end of file