This may pull off as a bit of a n00b question, but I am a jQuery n00b. I've combined bin sorting (Packery) with filtering (Filtr.js) here (search box at top left). Problem is once you filter, spaces are left in the layout until you resize the window which refreshes the layout. Filtr.js
has a callback function after filtering, and I'd like it to refresh the layout. I've tried:
$('input[name="filter"]').filtr($('#thumbs div'), {
afterFilter: function(){
pckry.layout();
}
});
To no avail. I've tried my best to implement afterFilter from here and Packery refreshing via pckry.layout(). I can't tell whether this just isn't possible to do, or if I haven't written this correctly?