O'Reilly logo

AngularJS Directives by Alex Vanston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Timing

I mentioned earlier that one of the reasons why I like using my examples directory as my basis for all E2E tests is that it helps ensure the quality of my code and my examples at the same time. As a prime example of this, when I added a logging element to my examples so I could demonstrate the use of our new initialized and updated events, I discovered that Masonry wasn't running quite as seamlessly as I'd originally imagined. The log was positioned right in the middle of the content grid, even though our elements extended far below that point. It turns out that even though Masonry was accurately positioning our elements, it was operating before all the element content had been compiled, and thus it miscalculated the proper height to apply ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required