Closed dave-yang closed 9 years ago
If you append the dynamically created div
to the container you can call $(".container").rowGrid("appended");
to arrange the newly appended div
.
Or if you added the new div
at the beginning or somewhere else in the container you can just call the plugin again:
var options = {minMargin: 5, maxMargin: 15, itemSelector: ".item", firstItemClass: "first-item"};
$(".container").rowGrid(options);
I hope this helps you.
Thanks Bruno!
Looks like the plug in isn't being activated for dynamic elements. To reproduce the issue try creating elements dynamically, after the plugin is activated (in Jquery's DOM ready function);
It will only gets activated when you resize the window.