Where basically I'm trying to order the item Y position into chunks according to their row, take the highest and set a common Y for all of them. Also I'd take previous row height and detect the chance of an overlap, adding some extra distance if overlapping.
This seems to work except that in some cases, the distance between rows is huge. I've tried to adjust the yPosition calculation when there's an overlap and also reduced the gutter but I can't get a consistent and logic result.
Any suggestions or directions would be appreciated
I've found myself with the following situation:
I tried to pass a custom layout overwriting the pinterest layout code.
I've got this:
Where basically I'm trying to order the item Y position into chunks according to their row, take the highest and set a common Y for all of them. Also I'd take previous row height and detect the chance of an overlap, adding some extra distance if overlapping.
This seems to work except that in some cases, the distance between rows is huge. I've tried to adjust the
yPosition
calculation when there's an overlap and also reduced the gutter but I can't get a consistent and logic result.Any suggestions or directions would be appreciated