AngularJS / Isotope— calling .isotope(“reLayout”) after page loads
问题 I'm trying to use isotope with AngularJS (to layout a set of "cards"). Instead of adding to the DOM directly, I add elements via isotope using container.isotope('insert',element). I do all this in the linking function, but it appears that when I insert stuff into the DOM in the linking function, the sizes aren't set correctly (in my case, height is 0), so the elements don't get drawn properly. If I resize the window, the elements then get draw correctly. I was thinking that I could use a