LXReorderableCollectionViewFlowLayout icon indicating copy to clipboard operation
LXReorderableCollectionViewFlowLayout copied to clipboard

Delete animation screwed up

Open CyberMew opened this issue 11 years ago • 2 comments

    [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 avatar Jul 31 '14 10:07 CyberMew

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

  • (CGSize)collectionView:(UICollectionView )collectionView layout:(UICollectionViewLayout)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath { if(indexPath.row % 2) { return CGSizeMake(100, 200); } return CGSizeMake(200, 100); }

CyberMew avatar Jul 31 '14 11:07 CyberMew

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?

lxcid avatar Jul 31 '14 12:07 lxcid