From ebb3d6a7e0a6386eb07fad4c629f88edfecc3c1f Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Thu, 6 Aug 2020 16:07:36 +0200 Subject: [PATCH] fix checkbox update --- Classes/LinphoneUI/UIChatBubblePhotoCell.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Classes/LinphoneUI/UIChatBubblePhotoCell.m b/Classes/LinphoneUI/UIChatBubblePhotoCell.m index 699634840..33ed9c745 100644 --- a/Classes/LinphoneUI/UIChatBubblePhotoCell.m +++ b/Classes/LinphoneUI/UIChatBubblePhotoCell.m @@ -340,8 +340,6 @@ static const CGFloat CELL_IMAGE_X_MARGIN = 100; _cancelButton.hidden = _fileTransferProgress.hidden = _downloadButton.hidden = YES; _playButton.hidden = ![type isEqualToString:@"video"]; _fileName.hidden = _fileView.hidden = _fileButton.hidden = localFile ? NO : YES; - // Should fix cell not resizing after doanloading image. - //[self layoutSubviews]; } } } @@ -533,6 +531,7 @@ static const CGFloat CELL_IMAGE_X_MARGIN = 100; } - (void)layoutSubviews { + [super layoutSubviews]; BOOL is_outgoing = linphone_chat_message_is_outgoing(super.message); CGRect bubbleFrame = super.bubbleView.frame; int origin_x;