0

I have a script on the page that removes "tiles" using a filter.

Is it possible to re-align everything when tiles are removed?

This doesn't seem to be doing it:

  $wrapper.masonry( 'reloadItems' );

I'm using the following to filter:

$('.tags:not(.tags:contains('+filter_text+'))').parent().fadeOut('slow');

Cheers!

4

1 回答 1

0

使用 Masonry 的“移除”方法移除元素,而不是自己使用 jQuery 移除它们。

所以,而不是:

$wrapper.find(<filter criteria>).remove();

做:

$wrapper.masonry("remove", $wrapper.find(<filter criteria>));
于 2013-05-09T19:16:00.140 回答