Search code examples
jqueryajaxpackery

packery overlapping, layout method does not work properly when adding html elements via ajax


Example does not work

The above link is an example of my problem. When I added some text in a span via ajax, the divs were overlapping.

However if I add text without ajax, the layout method works. Example works without ajax

Is there any way to re-layout divs after adding new elements via ajax?


Solution

  • The problem is I did not put layout inside complete.

    Now it works.