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

CGSize rendered is different from CGSize returned from sizeForItemAtIndexPath #169

Open
thexande opened this issue Apr 23, 2017 · 1 comment

Comments

@thexande
Copy link

Greetings!!

Amazing project. I was able to get it up and running perfectly, apart from the following issue.

I want to subtract 20 from my cell width in sizeforItemAtIndexPath method to account for 10pt content insets on both sides of the collection view. The issue is that the CGSize I am returning is not what is being rendered on the device or the simulator. This is what I have set in the delegate method:

screen shot 2017-04-23 at 12 10 14 pm

As you can see, the width should render to 369 pts in the simulator. However, the width rendered is 379.

screen shot 2017-04-23 at 12 08 34 pm

Any thoughts? THANKS SO MUCH!!

@sagarthecoder
Copy link

I'm also facing this problem. Is their any solution?

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