diff --git a/jquery.isotope.js b/jquery.isotope.js index 7d5631c..9c77bfc 100644 --- a/jquery.isotope.js +++ b/jquery.isotope.js @@ -936,7 +936,8 @@ $elems.each(function(){ var $this = $(this), //how many columns does this brick span - colSpan = Math.ceil( $this.outerWidth(true) / props.columnWidth ); + computedWidth = window.getComputedStyle(this) && parseFloat(window.getComputedStyle(this).width), + colSpan = Math.ceil( ( computedWidth || $this.outerWidth(true) ) / props.columnWidth ); colSpan = Math.min( colSpan, props.cols ); if ( colSpan === 1 ) {