[iOS] Copy layout attributes in GridLayout.
Sometimes this console message is logged by UIKit: UICollectionViewFlowLayout has cached frame mismatch for index path <NSIndexPath: 0xc000000001000016> {length = 2, path = 0 - 8} - cached value: {{21.399999999999991, 901.27999999999997}, {151.20000000000005, 181.79999999999995}}; expected value: {{13, 873}, {168, 202}} This is likely occurring because the flow layout subclass GridLayout is modifying attributes returned by UICollectionViewFlowLayout without copying them This CL copies those attributes. Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet Change-Id: I8b9ba4d4ce4fc01d5960e1321de693fe23e08139 Reviewed-on: https://chromium-review.googlesource.com/1087756Reviewed-by:edchin <edchin@chromium.org> Commit-Queue: edchin <edchin@chromium.org> Cr-Commit-Position: refs/heads/master@{#565766}
Showing
Please register or sign in to comment