Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
clusterize.update() fails when there are repeated items #126
I'm creating a web app that uses Clusterize. Very cool plugin by the way. ;)
It goes fine when there are diferent items in the list and if the viewport is at the end of the list (even if repeated), but
In this gif you can understand me better:
My english is still a work in progress. Corrections are welcomed. :)
ok, so this happens because after deletion you send EXACT same layout of current cluster.
the only difference between rows after row number 80 is numbers. but after deletion you restoring numbers of subsequent rows. layout stored in clusterize cache and updated layout for current cluster are equal, that's why this condition fails for your case.
what you can do: