DrewDahlman / Mason

Mason.js for creating a perfect grid with jQuery.
http://masonjs.com/
MIT License
1.22k stars 183 forks source link

Prevent Clone #2

Closed Colir closed 11 years ago

Colir commented 11 years ago

Hi, first at all, thanks for your plugin !

I've a little question. I'm looking for a way to have a perfect filled grid but whithout cloned brick. Is there a way to do this ?

thanks

DrewDahlman commented 11 years ago

Hi, So the short answer is no... The main reason for this is that in order to do that - you would need to calculate the missing gaps then size elements based around that - which sounds easy enough but in reality requires quite a bit of work and winds up creating unreliable results.

You can however create a large bucket of custom filler blocks. These can still be considered part of your normal grid elements but essentially if you put blocks form your main blocks into your filler block group you should see a nice result.

hope that helps!

Colir commented 11 years ago

...i'm sorry, i didn't really understand the tricks...