Permalink
Browse files

Set indexPath regardless of if it is present in the new model

  • Loading branch information...
alexanderedge committed Mar 14, 2013
1 parent 885d275 commit 985a605fe2783cbd24791c5a66a397437965b929
Showing with 3 additions and 3 deletions.
  1. +3 −3 PSTCollectionView/PSTCollectionViewLayout.m
@@ -304,9 +304,9 @@ - (void)prepareForCollectionViewUpdates:(NSArray *)updateItems {
if(index != NSNotFound) {
index = [update[@"oldToNewIndexMap"][index] intValue];
- if(index != NSNotFound) {
- [attr setIndexPath:[update[@"newModel"] indexPathForItemAtGlobalIndex:index]];
- }
+
+ [attr setIndexPath:[attr indexPath]];
+
}
}
_initialAnimationLayoutAttributesDict[[PSTCollectionViewItemKey collectionItemKeyForLayoutAttributes:attr]] = attr;

0 comments on commit 985a605

Please sign in to comment.