forked from zelo72/mastodon-ios
fix: cell reuse issue for refactored notification cell
This commit is contained in:
parent
c6e2e867e1
commit
cae3e45de0
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue