Closed tomersimis-zz closed 9 years ago
That looks great, thanks for the PR. Do you think you could make the test a bit more specific?
@passy I think this makes the tests more specific (bf280d0095cf15d327936fdcd7903780ab40f32c), what do you think?
Much better! Thanks a lot, Tomer!
Add a
$watch
to detect whenmasonry
is resized and callctrl.reload()
.Triggers a reload when the masonry element changes its width, useful when only the parent element is resized (and not the window) and you want the elements to be rearranged. Without this if the parent is resized then some blank space may be left on the sides.