InfiniteHorizontalLayout icon indicating copy to clipboard operation
InfiniteHorizontalLayout copied to clipboard

cell not visible in special condition

Open iOkay opened this issue 9 years ago • 2 comments

In my project, I set MIN_NUMBER_OF_ITEMS_REQUIRED to 7, and make the data source has 8 items. When I scroll the collection, there are some cells not visible. Like the image showing. -2

I do not understand why this happened. Can you help me to this.

iOkay avatar Sep 05 '16 11:09 iOkay

If I understand correctly this is something that cannot be got right using this method, collection view itself just doesn't think that those cells are visible because they are out of some bounds. this area doesn't match collection view bounds and I don't know how to specify it. As far as I know this area depends on collection view frame and collection view item size. I suggest you find another way for implementing this behaviour For example you can get the same results making large scroll area with number_of_items muliplied by N times and without using this layout and also recalculate index paths in your collection view delegate and datasource. You get a little extra code but it will be more manageable.

pivl avatar Sep 06 '16 19:09 pivl

Fine. Thank you and I will try another way.

iOkay avatar Sep 07 '16 03:09 iOkay