|
@@ -114,7 +114,7 @@ class CommunityRecommendDetailHTMLTableViewCell: UITableViewCell {
|
|
|
make.height.equalTo(10)
|
|
|
}
|
|
|
locationButton.snp.makeConstraints { (make) in
|
|
|
- make.left.equalTo(-14)
|
|
|
+ make.left.equalTo(14)
|
|
|
make.top.equalTo(collectionView.snp.bottom).offset(15)
|
|
|
make.height.equalTo(15)
|
|
|
}
|
|
@@ -326,7 +326,7 @@ class CommunityRecommendDetailHTMLTableViewCell: UITableViewCell {
|
|
|
var titleSpecHeight : CGFloat = 0
|
|
|
var locationSpecHeight : CGFloat = 0
|
|
|
|
|
|
- if communityPostDetailModel?.title == nil && communityPostDetailModel?.title == "" {
|
|
|
+ if communityPostDetailModel?.title == nil || communityPostDetailModel?.title == "" {
|
|
|
titleHeight = 0
|
|
|
titleSpecHeight = 0
|
|
|
}else {
|
|
@@ -334,7 +334,7 @@ class CommunityRecommendDetailHTMLTableViewCell: UITableViewCell {
|
|
|
titleSpecHeight = 10
|
|
|
}
|
|
|
|
|
|
- if communityPostDetailModel?.location == nil && communityPostDetailModel?.location == "" {
|
|
|
+ if communityPostDetailModel?.location == nil || communityPostDetailModel?.location == "" {
|
|
|
locationHeight = 0.0
|
|
|
locationSpecHeight = 20
|
|
|
}else {
|
|
@@ -344,9 +344,9 @@ class CommunityRecommendDetailHTMLTableViewCell: UITableViewCell {
|
|
|
|
|
|
let subViewHeight = titleHeight + 44.0 + 16 + (webViewCellHeight ?? 0) + collectionViewheight + locationHeight
|
|
|
|
|
|
- let specHeight = titleSpecHeight + 10 + 5 + 20 + locationSpecHeight + 15
|
|
|
+ let specHeight = titleSpecHeight + 10 + 5 + 20 + locationSpecHeight
|
|
|
|
|
|
- heightModel?.height = CGFloat(subViewHeight) + specHeight - 30
|
|
|
+ heightModel?.height = CGFloat(subViewHeight) + specHeight
|
|
|
}
|
|
|
}
|
|
|
|