fix: cell reuse issue for refactored notification cell

This commit is contained in:
CMK 2021-07-03 03:32:32 +08:00
parent c6e2e867e1
commit cae3e45de0
1 changed files with 1 additions and 4 deletions

View File

@ -107,6 +107,7 @@ extension NotificationSection {
requestUserID: notification.userID,
statusItemAttribute: attribute
)
cell.statusContainerView.isHidden = false
cell.containerStackView.alignment = .top
cell.containerStackViewBottomLayoutConstraint.constant = 0
} else {
@ -119,10 +120,6 @@ extension NotificationSection {
cell.containerStackViewBottomLayoutConstraint.constant = 5 // 5pt margin when no status view
}
// make constraint change take effect
cell.setNeedsLayout()
cell.layoutIfNeeded()
return cell
case .bottomLoader: