RFQuiltLayout icon indicating copy to clipboard operation
RFQuiltLayout copied to clipboard

Fix broken logic with multiple sections

Open Muirey03 opened this issue 5 years ago • 0 comments

There is an issue with the logic in fillInBlocksToUnrestrictedRow: when using collections views with multiple sections. The for loop for rows starts row at self.lastIndexPathPlaced.row + 1, this is incorrect if section != self.lastIndexPathPlaced.section, in which case, row should start at 0.

To see a demonstration of the issue yourself, create a simple collection view with two sections, each with one item. You should see that only the item in the first section is created. This PR fixes that.

Muirey03 avatar Feb 15 '20 20:02 Muirey03