Skip to content

Filtering (filter change functions) does not always rebuild masonry #8

Description

@stefanKuijers

Symptons

Items do not take up full width of the column

Cause

Reload functions misses the masonry options;

var reload = function($container,items){      
      $container.empty();
      $(items).each(function(){
        $($container).append($(this));
      });
      $container.masonry('reloadItems');
      $container.masonry();
    };

Fix

Last line should be:

$container.masonry();

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