Section insets not refreshed when invalidating collection view flow layout

Originator:thephatmann
Number:rdar://19091203 Date Originated:27-Nov-2014 05:05 PM
Status:Closed Resolved:25-Feb-2015
Product:iOS SDK Product Version:iOS 8.1
Classification: Reproducible:Always
 
I could not reproduce it with a sample project.

Summary:
Calling invalidateLayout on UICollectionViewFlowLayout does not refresh the section insets in the layout.

If you change the sectionInset property, the updated value is not used.

If the layout delegate has a collectionView:layout:insetForSectionAtIndex: method, this method is not called to obtain new values after calling invalidateLayout.

Steps to Reproduce:
1. Set sectionInset property to 10.
2. Load view
3. Set sectionInset property to 20.
4. Invalidate layout.

OR 

1. Implement collectionView:layout:insetForSectionAtIndex: to return value of a property mySectionInset.
2. Set mySectionInset to 10.
3. Load view.
4. Set mySectionInset to 20.
5. Invalidate layout.

Expected Results:
Section inset is increased in the view.

Actual Results:
Section inset is not changed.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!