Skip to content

Masonry options with element sizing do not work #9

Description

@fkaminski

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions