lxcid / LXReorderableCollectionViewFlowLayout

Extends `UICollectionViewFlowLayout` to support reordering of cells. Similar to long press and pan on books in iBook.
http://lxcid.com/
MIT License
1.86k stars 328 forks source link

Delete animation screwed up #73

Open CyberMew opened 9 years ago

CyberMew commented 9 years ago
    [self.m_collectionView.collectionView deleteItemsAtIndexPaths:[NSArray arrayWithObject:indexPath]];

This deletes the cell with nice animation BUT the cells gets squeezed together. See last row in photo. All I did was delete the last cell.

screen shot 2014-07-31 at 6 26 17 pm

CyberMew commented 9 years ago

Seems like it will only happen on the last row when you do this:

lxcid commented 9 years ago

I'm not sure I get you. I don't remember doing anything that will affect deletion of cell behaviour. Can you swap out LXReorderableCollectionViewFlowLayout with the generic UICollectionViewFlowLayout and see if the issue still exists?