Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 898bddb

Browse files
authored
More bubble hidden on reuse (#1417)
1 parent be80988 commit 898bddb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Classes/Issues/Comments/IssueCommentBaseCell.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class IssueCommentBaseCell: UICollectionViewCell, UIGestureRecognizerDelegate {
158158

159159
collapseButton.center = CGPoint(
160160
x: collapseFrame.width / 2,
161-
y: collapseFrame.minY + collapseButton.bounds.height / 2 - 3
161+
y: collapseFrame.maxY - collapseButton.bounds.height / 2 - 1
162162
)
163163
}
164164
}
@@ -171,6 +171,12 @@ class IssueCommentBaseCell: UICollectionViewCell, UIGestureRecognizerDelegate {
171171
set { backgroundLayer.fillColor = newValue?.cgColor}
172172
}
173173

174+
override func prepareForReuse() {
175+
super.prepareForReuse()
176+
collapseLayer.isHidden = true
177+
collapseButton.isHidden = true
178+
}
179+
174180
// MARK: Private API
175181

176182
@objc private func onDoubleTap() {

0 commit comments

Comments
 (0)