min hit size on action buttons

This commit is contained in:
Ryan Nystrom
2017-08-06 18:03:13 -04:00
parent aba2c88505
commit fc30e6e396
2 changed files with 4 additions and 3 deletions

View File

@@ -123,9 +123,10 @@ final class IssueTextActionsView: UIView, UICollectionViewDataSource, UICollecti
}
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
let height = collectionView.bounds.height
return CGSize(
width: operations[indexPath.item].icon?.size.width ?? 0,
height: collectionView.bounds.height
width: min(operations[indexPath.item].icon?.size.width ?? 0, height),
height: height
)
}

View File

@@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1296</string>
<string>1298</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>