November 25, 2014 at 8:23 am
#10005208
Keymaster
Hello, the problem is that the isotope (filter plugin) works with absolute positions in the elements, so it means that the elements can’t change its sizes. The only way is to call the layout method, but the behavior may not be perfect:
(js/custom.js)
$(document).ready(function() {
var $container = $('.sort-destination[data-sort-id=portfolio]');
$container.on( 'click', '.toggle > label', function() {
setTimeout(function() {
$container.isotope('layout');
}, 300);
});
});
More information:
http://isotope.metafizzy.co/methods.html#layout
Kind Regards,
Jonas