multiple-filter-masonry
multiple-filter-masonry copied to clipboard
Masonry options with element sizing do not work
Hello, i used this script and it works fine as long as i set the masonry options for column and gutter width like:
...
columnWidth: 240,
gutter: 10,
...
When i try to set these with the masonry element sizing (e.g. css classes) like:
columnWidth: '.grid-sizer',
gutter: '.gutter-sizer',
for
<div class="grid">
<div class="grid-sizer"></div>
<div class="gutter-sizer"></div>
<div class="grid-item"></div>
<div class="grid-item"></div>
...
</div>
it does not work. The filtering is OK - but with no height of the container at all?
Maybe you have a solution? Thanks Frank
I have the same problem! Don't know how to fix it? Maybe the code in line 40-41 ist not correct:
$container.masonry('reloadItems'); $container.masonry();