|
@@ -134,24 +134,24 @@ extension CardContentCommentListTableViewCell : UITableViewDelegate,UITableViewD
|
|
|
let contentStr = "\(communityFollowPostCommentModel?.content ?? "")"
|
|
|
let str = nameStr + contentStr
|
|
|
let strHeight = str.heightForComment(font: kRegularFont14!, width: kScreenWidth-28)
|
|
|
- return strHeight + 4
|
|
|
+ return strHeight
|
|
|
}else {
|
|
|
let communityRecommendCommentModel = communityRecommendDataModel?.comment?[indexPath.row]
|
|
|
let nameStr = "\(communityRecommendCommentModel?.username ?? ""):"
|
|
|
let contentStr = "\(communityRecommendCommentModel?.content ?? "")"
|
|
|
let str = nameStr + contentStr
|
|
|
let strHeight = str.heightForComment(font: kRegularFont14!, width: kScreenWidth-28)
|
|
|
- return strHeight + 4
|
|
|
+ return strHeight
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
|
|
- return 0
|
|
|
+ return 0.000001
|
|
|
}
|
|
|
|
|
|
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
|
|
|
- return 0
|
|
|
+ return 0.000001
|
|
|
}
|
|
|
|
|
|
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
|