Skip to content

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

@stefanKuijers

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

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