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

section headers not correctly positioned #32

Open
CoooooooderJ opened this issue Jan 13, 2020 · 1 comment
Open

section headers not correctly positioned #32

CoooooooderJ opened this issue Jan 13, 2020 · 1 comment

Comments

@CoooooooderJ
Copy link

When I applied the layout to a collectionView with section headers, the headers except the first one were not correctly positioned. It seemed that the origin of the headers were the same as that of the first row of cells in the same section. Any suggestion? Is it a bug, or have I miss anything? Thx

@CoooooooderJ
Copy link
Author

The headers incorrectly positioned should have been higher than they are. I have peek into the source code and find that in the layoutAttributesForElements method, when enumerating the attributesCopy, the case of attributes.representedElementKind == UICollectionViewElementKindSectionHeader/UICollectionViewElementKindSectionFooter is not handled. May this be the reason of the issue?

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