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 layout? (Fixed height/max rows + variable width/unlimited columns) #31

Closed
KingScooty opened this issue May 8, 2013 · 35 comments

Comments

@KingScooty
Copy link

Is there a way to set a max height of the container or a max number of rows (3n, or 1n+2n, or 1n+1n+1n) and have the content flow horizontally, filling up all rows before moving to the next row?

I can't seem to find anything in the documentation that suggests this is possible.

@desandro
Copy link
Member

desandro commented May 8, 2013

Right now - no.

If you are interested in horizontal Packery, please +1.

@trewknowledge
Copy link

+1

2 similar comments
@senner007
Copy link

+1

@fitz0019
Copy link

+1

@wpoosanguansit
Copy link

+1

I was about to ask if I can add multiple items horizontally and I see this enhancement request. I assume append and prepend would allow users to append/prepend more than one item or as many items to fit the height as well. Thanks.

@Skaidon
Copy link

Skaidon commented May 14, 2013

+1

8 similar comments
@VincentPeters
Copy link

+1

@simonpeters
Copy link

+1

@romanenko
Copy link

+1

@jmdall
Copy link

jmdall commented Jun 5, 2013

+1

@dsc
Copy link

dsc commented Jun 5, 2013

+1

@TheSisb
Copy link

TheSisb commented Jun 6, 2013

+1

@gewfy
Copy link

gewfy commented Jun 17, 2013

+1

@tbleckert
Copy link

+1

@gewfy
Copy link

gewfy commented Jun 17, 2013

Try this rotation hack while waiting for horizontal support :P
http://codepen.io/gewfy/pen/GvEiH

@shaheebroshan
Copy link

+1

@devonzara
Copy link

+1. I'd love to be able to do this with an infinite horizontal scroll too!

@devonzara
Copy link

Ok, I really needed this feat. so I went ahead and implemented it myself and created a pull request. For anyone else who can't wait, check out: #76

@spinx
Copy link

spinx commented Aug 5, 2013

+1

2 similar comments
@TheDNA
Copy link

TheDNA commented Aug 6, 2013

+1

@PaRoxUs
Copy link

PaRoxUs commented Aug 7, 2013

+1

@marcorivm
Copy link

+1

2 similar comments
@JulianLaval
Copy link

+1

@cosmindorobantu
Copy link

+1

@PaRoxUs
Copy link

PaRoxUs commented Oct 7, 2013

I don't know how you plan to implement this but it would be awesome if you could for example use grid system that are based on % for making a horizontal layout.

Lets say we are using a 12-col grid system and then we are having 6 x col-3 in one row. Totally that is 150% width of the container and the 2 last col-3's would be positioned below. What I would love Packery to do is to take the width from the container, let say its 1000px and then set the with to 250px to all the elements and if all col-3's have a 100% height of the container you would need to scroll to view them.

This would be awsooooooome especially for mobile and pad applications!!!

@kjell
Copy link

kjell commented Oct 23, 2013

+1

2 similar comments
@MikeNGarrett
Copy link

+1

@glennmicallef
Copy link

+1

@lpillonel
Copy link

+1 too

@nicohvi
Copy link

nicohvi commented Dec 10, 2013

+1 💃

@jmcgdz
Copy link

jmcgdz commented Dec 10, 2013

+1

1 similar comment
@pedro380085
Copy link

+1

desandro added a commit to metafizzy/packery-docs that referenced this issue Dec 12, 2013
@desandro
Copy link
Member

You want it, you got it! 🐝 🐣 Horizontal layouts are supported by Packery with v1.2.0 by setting isHorizontal: true.

See http://packery.metafizzy.co/options.html#ishorizontal

One caveat is that the container needs height to be set, which is easy enough with CSS.

Documenting the change: v1.1.2...v1.2.0

Closing this ticket, but feel free to celebrate. 🍓

@MikeNGarrett
Copy link

tumblr_mvk2z7mt4e1slapmbo5_250

@fitz0019
Copy link

Awesome - looks great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests