Fix bubble cell height for cells with attachment view and reactions.

This commit is contained in:
SBiOSoftWhare
2019-06-18 18:36:22 +02:00
parent 0dd8dba9a7
commit 9693652d61
6 changed files with 100 additions and 0 deletions
@@ -16,6 +16,7 @@
*/
#import "RoomIncomingAttachmentWithoutSenderInfoBubbleCell.h"
#import "MXKRoomBubbleTableViewCell+Riot.h"
#import "ThemeService.h"
#import "Riot-Swift.h"
@@ -29,4 +30,16 @@
self.messageTextView.tintColor = ThemeService.shared.theme.tintColor;
}
+ (CGFloat)heightForCellData:(MXKCellData*)cellData withMaximumWidth:(CGFloat)maxWidth
{
CGFloat rowHeight = [self attachmentBubbleCellHeightForCellData:cellData withMaximumWidth:maxWidth];
if (rowHeight <= 0)
{
rowHeight = [super heightForCellData:cellData withMaximumWidth:maxWidth];
}
return rowHeight;
}
@end