Here’s a post dealing with this issue in BootStrap (and a fix): http://www.sitepoint.com/bootstrap-tabs-play-nice-with-masonry/
I’m still working out how to get it working in Foundation.
Here’s some sample code dealing with Isotope (a similar script): https://github.com/desandro/masonry/issues/665
This one ALMOST works for me – but only when the tabs are “refreshed” (i.e. it doesn’t work when I click the tabs initially, but if I load the developer tools (F12) the tabs reload and Masonry works. Working on figuring this out now.