-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help implementing custom layout #51
Comments
@dantrain if you could take a look I'd be so pleased |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: