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

Filtering (filter change functions) does not always rebuild masonry

Open stefanKuijers opened this issue 9 years ago • 0 comments

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

stefanKuijers avatar Jun 21 '16 12:06 stefanKuijers