mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-20 14:26:50 +08:00
fix bottom spacing by rounding up cell height
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user