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

setting numberOfColumnsInSection to odd number #19

Closed
mayooresan opened this issue Oct 21, 2016 · 2 comments
Closed

setting numberOfColumnsInSection to odd number #19

mayooresan opened this issue Oct 21, 2016 · 2 comments

Comments

@mayooresan
Copy link

mayooresan commented Oct 21, 2016

Currently when we set the numberOfColumnsInSection the result view will have double the amount of columns we requested.

E.g. we set the value to 2 then there is 4 columns in the collectionview.

Due to this, we can't add odd number columns (e.g. 3,5,7 etc.)

Could you please address this issue.

@mayooresan mayooresan changed the title Number of sections setting numberOfColumnsInSection to odd number Oct 21, 2016
@KyleGoddard
Copy link
Member

@mayooresan this is a limitation of the library, the algorithm used to calculate column numbers can only produce even numbers of columns.

@mayooresan
Copy link
Author

Thanks for the reply.

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

2 participants