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

@@ -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 {