chiahsien/CHTCollectionViewWaterfallLayout

CGSize rendered is different from CGSize returned from `sizeForItemAtIndexPath`

thexande opened this issue · 1 comments

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!!

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