diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a3fb21e1..a45af191d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -102,6 +102,8 @@ This release closes the [3.0.0 milestone](https://github.com/Instagram/IGListKit - `IGListSectionType` protocol was removed and its methods were absorted into the `IGListSectionController` base class with default implementations. [Ryan Nystrom](https://github.com/rnystrom) (tbd) +- When setting the collection view on `IGListAdapter`, its layout is now properly invalidated. [Jesse Squires](https://github.com/jessesquires) [(#677)](https://github.com/Instagram/IGListKit/pull/677) + 2.1.0 ----- diff --git a/Source/IGListAdapter.m b/Source/IGListAdapter.m index 4fff8edbb..21b8cccf2 100644 --- a/Source/IGListAdapter.m +++ b/Source/IGListAdapter.m @@ -83,6 +83,7 @@ - (void)setCollectionView:(UICollectionView *)collectionView { _collectionView = collectionView; _collectionView.dataSource = self; + [_collectionView.collectionViewLayout invalidateLayout]; [self updateCollectionViewDelegate]; [self updateAfterPublicSettingsChange];