CHTCollectionViewWaterfallLayout icon indicating copy to clipboard operation
CHTCollectionViewWaterfallLayout copied to clipboard

Cell order changed when reload data

Open CocaCola183 opened this issue 10 years ago • 6 comments

When I reload, I found the cell's order changed, how can I keep the original order of cell?

CocaCola183 avatar Dec 29 '15 06:12 CocaCola183

Are cells' heights changed?

chiahsien avatar Dec 29 '15 07:12 chiahsien

Yeah I'm getting the same behavior. Cell heights have not changed. Works correctly the first time reloadData is called, but heights reversed on subsequent calls

emjoseph avatar Aug 30 '17 04:08 emjoseph

Also I'm running the Swift 3 version

emjoseph avatar Aug 30 '17 04:08 emjoseph

@CocaCola183 were you able to resolve this issue on your own?

emjoseph avatar Aug 30 '17 05:08 emjoseph

Was able to resolve the issue. Not a problem with the library but the way I was handling the reuse of my cells. The collectionViewCell's contentView frame was not updating on reuse hence the perceived reverse order

emjoseph avatar Aug 30 '17 07:08 emjoseph

@emjoseph how did you solve it ?

hai2014bk avatar May 10 '18 10:05 hai2014bk