Invalidate layout when collection view reused between IGListAdapters

Summary:
Closes #659
Closes https://github.com/Instagram/IGListKit/pull/677

Differential Revision: D4915322

Pulled By: jessesquires

fbshipit-source-id: 2ae6ff4ee1726fe2395233d7d662c0b12956a746
This commit is contained in:
Jesse Squires
2017-04-19 12:58:58 -07:00
committed by Facebook Github Bot
parent 04e6c1bff1
commit 145327647b
2 changed files with 3 additions and 0 deletions

View File

@@ -104,6 +104,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
-----

View File

@@ -83,6 +83,7 @@
_collectionView = collectionView;
_collectionView.dataSource = self;
[_collectionView.collectionViewLayout invalidateLayout];
[self updateCollectionViewDelegate];
[self updateAfterPublicSettingsChange];