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
@@ -19,6 +19,8 @@
#import "ThemeService.h"
#import "Riot-Swift.h"
#import "RoomBubbleCellData.h"
#import "MXKRoomBubbleTableViewCell+Riot.h"
@implementation RoomOutgoingAttachmentWithoutSenderInfoBubbleCell
@@ -36,4 +38,16 @@
[RoomOutgoingAttachmentBubbleCell render:cellData inBubbleCell:self];
}
+ (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