I\'ve got something I\'ve put together using jQuery isotope here.. http://jsbin.com/eziqeq/6/edit
It seems to work in general but on first load, of a new tab, the Is
A much better way to fix this is to provide width and height to the isotope item and/or the images itself. With the widnow load method you'll end up waiting a few seconds before isotope kicks in and the layout will change which is weird.
Here's what i use in a WordPress theme inside a post loop:
$value ) {
$image_medium = wp_get_attachment_image_src( $value, 'medium');
$image_full = wp_get_attachment_image_src( $value, 'full');
$w = $image_medium[1]; //Image Width
$h = $image_medium[2]; //Image Height
?>