wrapper.find('.view-content').packery('reloadItems'); not working. How to fix?
https://www.drupal.org/project/views_load_more

Comments

swim’s picture

Hey,

this is untested code but the general gist would be as follows. Nesting follows the chicken and egg rule; what happens first.

$(document).bind('packery.alterInstance', function(event, instance) {
  $(document).bind('views_load_more.new_content', function(event, new_content) {
    // Trigger Packery again; or
    instance.packery();

    // Reload the current item layout.
    instance.packery('reloadItems')
  });
});
swim’s picture

Status: Active » Closed (works as designed)

Please reopen if you're still having issues.

shevgeny’s picture

Thank you, I will try to use your sample code. I accomplish your goal is the success.