mirror of
https://github.com/tappollo/IGListKit.git
synced 2026-04-29 04:15:02 +08:00
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:
committed by
Facebook Github Bot
parent
04e6c1bff1
commit
145327647b
@@ -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
|
||||
-----
|
||||
|
||||
|
||||
@@ -83,6 +83,7 @@
|
||||
|
||||
_collectionView = collectionView;
|
||||
_collectionView.dataSource = self;
|
||||
[_collectionView.collectionViewLayout invalidateLayout];
|
||||
|
||||
[self updateCollectionViewDelegate];
|
||||
[self updateAfterPublicSettingsChange];
|
||||
|
||||
Reference in New Issue
Block a user