you should trigger the plugin masonry again to resort the page. you can specify a callback function for infinite scroll
e.g.
$('element').infiniteScroll({}, function(newElements) {
// newElements are the set of elements fetched after ajax call
// you may retrigger masonry to resort the new set of elements added.
var $newElements = $(newElements);
$newElements.imagesLoaded(function() {
$newElements.masonry('appended', $newElements, true);
});
});
I hope this helps.
lambing
Junior Poster in Training
76 posts since Feb 2010
Reputation Points: 10
Solved Threads: 15
Skill Endorsements: 0