multiple-filter-masonry icon indicating copy to clipboard operation
multiple-filter-masonry copied to clipboard

Masonry options with element sizing do not work

Open fkaminski opened this issue 9 years ago • 1 comments

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

fkaminski avatar Aug 12 '16 19:08 fkaminski

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

godsdog avatar Aug 08 '17 10:08 godsdog