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

Group. ContentInsets iOS12 in the bottom and the trailing cannot properly #152

Open
xixisplit opened this issue May 19, 2021 · 3 comments
Open

Comments

@xixisplit
Copy link

Hello. By modifying demo, I found that error #100 still exists, and iOS 12 and 13 do not perform consistently. ContentInsets bottom and backward, uncontrollable, you can try running demos and modify the group.contentInsets of AdaptiveSectionsViewController in systems before iOS 13.

group.contentInsets = NSDirectionalEdgeInsets(top: 20, leading: 20, bottom: 20, trailing: 20)

@xixisplit
Copy link
Author

IMG_3B6ACA46EB0B-1
iOS 12.5.2

IMG_F42983650052-1
iOS 14.4.1

@xixisplit
Copy link
Author

IBPCollectionCompositionalLayoutSolver.m line 152
Modify the code
Can fix the problem, but I don't know whether there will be other bugs @kishikawakatsumi
itemSize.width = (CGRectGetWidth(containerFrame)-(group.contentInsets.leading + group.contentInsets.trailing) - interItemFixedSpacing * (group.count - 1)) / group.count;

@rafaelnobrekz
Copy link

I confirm the fix proposed by @xixisplit works in the cases I tested with! Thank you.

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