From 6117c3b9045b2b3332ed5e0b749a1a5ac0f39936 Mon Sep 17 00:00:00 2001 From: Ryan Nystrom Date: Tue, 14 Aug 2018 23:51:00 -0700 Subject: [PATCH] fix action delay with reactions menu --- .../Comments/Reactions/IssueCommentReactionCell.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Classes/Issues/Comments/Reactions/IssueCommentReactionCell.swift b/Classes/Issues/Comments/Reactions/IssueCommentReactionCell.swift index 69c40fd9e..e22719f6d 100644 --- a/Classes/Issues/Comments/Reactions/IssueCommentReactionCell.swift +++ b/Classes/Issues/Comments/Reactions/IssueCommentReactionCell.swift @@ -17,7 +17,7 @@ protocol IssueCommentReactionCellDelegate: class { func didTapAddReaction(cell: IssueCommentReactionCell, sender: UIView) } -final class IssueCommentReactionCell: IssueCommentBaseCell, +final class IssueCommentReactionCell: UICollectionViewCell, ListBindable, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout { @@ -89,6 +89,11 @@ UICollectionViewDelegateFlowLayout { fatalError("init(coder:) has not been implemented") } + override func layoutSubviews() { + super.layoutSubviews() + layoutContentViewForSafeAreaInsets() + } + // MARK: Public API func perform(operation: IssueReactionOperation, content: ReactionContent) {