Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete animation screwed up #73

Open
CyberMew opened this issue Jul 31, 2014 · 2 comments
Open

Delete animation screwed up #73

CyberMew opened this issue Jul 31, 2014 · 2 comments

Comments

@CyberMew
Copy link

    [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
Copy link
Author

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);
    }

@lxcid
Copy link
Owner

lxcid commented Jul 31, 2014

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants