-
Notifications
You must be signed in to change notification settings - Fork 447
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
Padding & ContentSize #85
Comments
I have created a test project where you can see the behavior with insets : https://github.com/nverinaud/GridViews-Prototypes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
First of all thank you for your work !
I encounter an issue with the insets and the content size of the gridView.
Setting a left or right inset grow the content size even if "contentSizeGrowsToFillBounds" is set to NO.
I expect the contentSize to remain the same but the cells just move to the right or the left (depending on the insets properties) and adjust themselves in correct columns to stay visible.
An exemple:
The gridView frame size is 320 * 200.
The gridViewCell frame size is 50 * 50.
I set a left inset of 120.
So the gridView available size for cells is 320-120 * 200 = 200_200.
In fact it is 440_200 because the left inset adds 120 to the size.
Thanks for help !
The text was updated successfully, but these errors were encountered: