From 80da0b92cd4d666cc489161c7f16edcaf70191c1 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Thu, 26 Nov 2015 17:40:20 +0800 Subject: [PATCH] fix layout (socialWorkContainerViewHeightConstraint need >= 44) --- Yep/Views/Cells/FeedSocialWork/FeedSocialWorkCell.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Yep/Views/Cells/FeedSocialWork/FeedSocialWorkCell.swift b/Yep/Views/Cells/FeedSocialWork/FeedSocialWorkCell.swift index cbf25a9d..41dda4f3 100644 --- a/Yep/Views/Cells/FeedSocialWork/FeedSocialWorkCell.swift +++ b/Yep/Views/Cells/FeedSocialWork/FeedSocialWorkCell.swift @@ -102,7 +102,7 @@ class FeedSocialWorkCell: FeedBasicCell { case .DribbbleShot: height += (dribbbleShotHeight + 15) case .Audio: - height += (40 + 15) + height += (44 + 15) default: break } @@ -175,7 +175,7 @@ class FeedSocialWorkCell: FeedBasicCell { linkContainerViewHeightConstraint.constant = linkContainerViewHeight socialWorkContainerViewHeightConstraint.constant = dribbbleShotHeight - mediaContainerView.layoutIfNeeded() + contentView.layoutIfNeeded() case .Audio: @@ -196,7 +196,7 @@ class FeedSocialWorkCell: FeedBasicCell { } } - socialWorkContainerViewHeightConstraint.constant = 40 + socialWorkContainerViewHeightConstraint.constant = 44 default: break