NHBalancedFlowLayout icon indicating copy to clipboard operation
NHBalancedFlowLayout copied to clipboard

Wrong collectionViewContentSize

Open ftp27 opened this issue 8 years ago • 1 comments

I use UICollectionView with NHBalancedFlowLayout inside another UICollectionView because I must get the height of content in NHBalancedFlowLayout by this code:

[((NHBalancedFlowLayout *) self.filesList.collectionViewLayout) prepareLayout];
CGFloat collectionSize = [((NHBalancedFlowLayout *) self.filesList.collectionViewLayout) collectionViewContentSize].height;

But this function returns 0. How can I get the real size of content?

ftp27 avatar May 24 '16 14:05 ftp27

I located this issue. Content gets wrong height when one of sections has 0 count of cells.

ftp27 avatar May 24 '16 18:05 ftp27