Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong collectionViewContentSize #41

Open
ftp27 opened this issue May 24, 2016 · 1 comment
Open

Wrong collectionViewContentSize #41

ftp27 opened this issue May 24, 2016 · 1 comment

Comments

@ftp27
Copy link

ftp27 commented May 24, 2016

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
Copy link
Author

ftp27 commented May 24, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant