filter - jQuery Masonry - re-align tiles when removed -


i have script on page removes "tiles" using filter.

is possible re-align when tiles removed?

this doesn't seem doing it:

  $wrapper.masonry( 'reloaditems' ); 

i'm using following filter:

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

cheers!

use "remove" method of masonry removing elements instead of removing them using jquery yourself.

so, instead of:

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

do:

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

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -