Skip to content

Commit

Permalink
[Collections] Updates layout logic to include isEditing, thereby forc…
Browse files Browse the repository at this point in the history
…ing infoBar positions to get updated.

Reviewers: #mdc_ios_owners, ajsecord

Reviewed By: #mdc_ios_owners, ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D819
  • Loading branch information
chriscox committed May 4, 2016
1 parent d51f79c commit 6bb5bec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/Collections/src/MDCCollectionViewFlowLayout.m
Expand Up @@ -111,7 +111,8 @@ - (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect {
}

- (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds {
if (!CGSizeEqualToSize(self.collectionView.bounds.size, newBounds.size)) {
if (!CGSizeEqualToSize(self.collectionView.bounds.size, newBounds.size) ||
self.editor.isEditing) {
return YES;
}
return NO;
Expand Down

0 comments on commit 6bb5bec

Please sign in to comment.