Closed jonlambert closed 7 years ago
The same for me too. This just took my time to figure out. Shame no answer given.
+1 I'm just looking into the code, maybe we can solve this ourselves. Maybe @DrewDahlman will deliver. (Basically another option "entirely:true/false" would be interesting. as in "only fill if really necessary".)
Can you post a fiddle?
I'm supplying 8 items in a grid with 4 columns. I'd expect MasonJS to arrange all the items in a 2x4 grid without fillers.
Ahh looks like there is a calculation issue - if you remove the borders it works as it should.. https://jsfiddle.net/ufvee0v3/4/ I will take a look at how sizing is being calculated to include better for borders.
You're right @DrewDahlman - The code is pretty sensitive when it comes to widths. ;) Still: Is there no option to skip fillers and use items instead? I want to prevent duplicate content.
If you do not want fillers, I put a comment there about that : #60 https://jsfiddle.net/ufvee0v3/7/
I was just going to create an issue on this. Is there now a documented way to make the images and their grids more predictable? I have the problem too that several tiles are repeating unnecessarily
@kokujin look at the promoted feature, you can assign classes and specify the dimensions of your elements based on a class and assigned sizing.
Hi!
This looks like an awesome plugin. I've just cracked it out on an example page, with 4 images as a test.
I'd like them all to render with an equal size, and distribute evenly to fill the container. This the plugin does brilliantly. However, it doesn't just fill one line, it creates a 4x4 grid of images (obviously repeating each image 4 times) meaning the container is 4x the height it should be. I'm sure it's down to user error, but is there any way of disabling the repetition, and limiting the height of the container?