Skip to content

Commit

Permalink
layout bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
tilltue authored and tilltue committed Dec 26, 2021
1 parent 89f924e commit 43cc38e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TLPhotoPicker/Classes/TLPhotosPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ extension TLPhotosPickerViewController {
let width = floor((self.view.frame.size.width - (self.configure.minimumInteritemSpacing * (count-1))) / count)
self.thumbnailSize = CGSize(width: width, height: width)
layout.itemSize = self.thumbnailSize
layout.minimumInteritemSpacing = 0
layout.minimumInteritemSpacing = self.configure.minimumInteritemSpacing
layout.minimumLineSpacing = self.configure.minimumLineSpacing
self.collectionView.collectionViewLayout = layout
self.placeholderThumbnail = centerAtRect(image: self.configure.placeholderIcon, rect: CGRect(x: 0, y: 0, width: width, height: width))
Expand Down

0 comments on commit 43cc38e

Please sign in to comment.