dynamick / multiple-filter-masonry

This script extend the great Desandro Masonry plugin adding the ability to filter elements using multiple filter (checkbox)
http://dynamick.github.io/multiple-filter-masonry/
40 stars 13 forks source link

Masonry options with element sizing do not work #9

Open fkaminski opened 8 years ago

fkaminski commented 8 years ago

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

godsdog commented 7 years ago

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();