fix bottom spacing by rounding up cell height

This commit is contained in:
Ryan Nystrom
2017-09-03 18:40:26 -04:00
parent e1dbf9c391
commit 2311f5576d
5 changed files with 5 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ final class NotificationCell: SwipeSelectableCell {
make.edges.equalTo(contentView).inset(NotificationCell.labelInset)
}
addBorder(.bottom, left: NotificationCell.labelInset.left)
contentView.addBorder(.bottom, left: NotificationCell.labelInset.left)
}
required init?(coder aDecoder: NSCoder) {

View File

@@ -25,7 +25,7 @@ SwipeCollectionViewCellDelegate {
override func sizeForItem(at index: Int) -> CGSize {
guard let width = collectionContext?.containerSize.width
else { fatalError("Collection context must be set") }
return CGSize(width: width, height: object?.title.textViewSize(width).height ?? 0)
return CGSize(width: width, height: ceil(object?.title.textViewSize(width).height ?? 0))
}
override func cellForItem(at index: Int) -> UICollectionViewCell {

View File

@@ -53,7 +53,7 @@ final class RepositorySummaryCell: SelectableCell {
make.right.equalTo(-inset.right)
}
addBorder(.bottom, left: inset.left)
contentView.addBorder(.bottom, left: inset.left)
}
required init?(coder aDecoder: NSCoder) {

View File

@@ -21,7 +21,7 @@ final class RepositorySummarySectionController: ListGenericSectionController<Rep
override func sizeForItem(at index: Int) -> CGSize {
guard let width = collectionContext?.containerSize.width else { fatalError("Missing context") }
return CGSize(width: width, height: object?.title.textViewSize(width).height ?? 0)
return CGSize(width: width, height: ceil(object?.title.textViewSize(width).height ?? 0))
}
override func cellForItem(at index: Int) -> UICollectionViewCell {

View File

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