Skip to content
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

Horizontal mode #64

Open
em opened this issue Jan 30, 2021 · 3 comments
Open

Horizontal mode #64

em opened this issue Jan 30, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@em
Copy link

em commented Jan 30, 2021

Is your feature request related to a problem? Please describe.
We use masonic currently for a fullscreen view of templates in a template gallery. We also have an index view that shows single-row sliders for each infinite list. We use react-slick for this but it's not performant and very difficult to customize. If masonic could layout in a horizontal mode I could use it in both places.

Describe the solution you'd like
Perhaps if there was a way to pass in our own render function that did the absolute positioning of tiles, as opposed to the current render function that is used to place content inside of pre-positioned tiles, then I could accomplish this by just swapping x and y, and providing scrollLeft to useMasonry instead of scrollTop.

Describe alternatives you've considered
The whole lib could be dimensionally agnostic but that seems like a lot of work

Additional context
Screen Shot 2021-01-30 at 5 50 57 PM

Screen Shot 2021-01-30 at 5 51 06 PM

@jaredLunde
Copy link
Owner

I agree this would be cool and I've spoken with someone on Twitter at length about potentially doing this in the past. Realistically I think I would be months away from having time to get this in.

@jaredLunde jaredLunde added the enhancement New feature or request label Feb 26, 2021
@aperkaz
Copy link

aperkaz commented Feb 26, 2021

I am very interested in this feature.
If you could point in the right direction for implementation @jaredLunde, i can give it a shot! 🙂

@jaredLunde
Copy link
Owner

@aperkaz sounds great - let me know if you need any help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants