desandro / masonry

:love_hotel: Cascading grid layout plugin
https://masonry.desandro.com
16.26k stars 2.11k forks source link

Is it possible to get a regular grid like result? #148

Closed kimptoc closed 12 years ago

kimptoc commented 12 years ago

Hi,

I am using masonry on this site - http://walloftweets.herokuapp.com/

Which is looking great - thanks.

Currently I have a fixed height specified, but was wondering if there was a way to get Masonry to work out the best height per row and use that?

I appreciate its not using the brick-like pattern masonry is really aimed for - but I just love the way it works and so it seemed like asking here is the best option, at least initially.

I tried switching over to isotope - thinking its alternate packing options might be what I want, but it seems its reload/reloadItems method does not work in the same way.

Thanks in advance, Chris

desandro commented 12 years ago

Masonry does not manipulate the size of its item elements. For that sort of feature, you are best off developing your own solution. Best of luck!

kimptoc commented 12 years ago

Thanks - didnt mean that I wanted masonry/isotope to manipulate the item height, just to find the best/smallest row height.

Just noticed that I had missed out the sortBy on my isotope migration - maybe that would help.

$('---').isotope( 'reloadItems' ).isotope({ sortBy: 'original-order' });

Thanks - Chris.

desandro commented 12 years ago

Whether you're changing the columnWidth or the size of the items, Masonry doesn't do this sort of thing automatically. However, you can fiddle with options as you like programmatically.

kimptoc commented 12 years ago

Ok, thanks.