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

Fix item size calculation inside layoutGroup #126

Conversation

ichiko
Copy link

@ichiko ichiko commented Oct 26, 2019

close #125

I think itemSize should not ignore effectiveSizeForContainer.

https://github.com/kishikawakatsumi/IBPCollectionViewCompositionalLayout/blob/master/Sources/IBPCollectionViewCompositionalLayout/IBPCollectionCompositionalLayoutSolver.m#L108

CGSize itemSize = [item.layoutSize effectiveSizeForContainer:container];

At least this changes work well reproduction code https://github.com/ichiko/IBPCVCLLayoutGroupContentInsetsBug

@kishikawakatsumi
Copy link
Owner

@ichiko This change breaks existing behavior (Run example app and see AdaptiveSectionsViewController).

This PR cannot be merged as-is. I will investigate the correct solution.

Simulator Screen Shot - iPhone Xs - 2019-11-01 at 23 23 18

@ichiko
Copy link
Author

ichiko commented Nov 2, 2019

Sorry I missed checking all examples.Thank you for your investigating.

@ichiko ichiko closed this Aug 18, 2020
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

Successfully merging this pull request may close these issues.

LayoutGroup.contentInsets extended whole content width
2 participants