From 7c69fbe4568d90bd29ef41cfddc85fb2659ee4da Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Sun, 2 Jan 2011 19:49:23 -0500 Subject: [PATCH] src: move this.width calc to layout --- src/jquery.isotope.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jquery.isotope.js b/src/jquery.isotope.js index 57d28cf..67f774c 100755 --- a/src/jquery.isotope.js +++ b/src/jquery.isotope.js @@ -578,7 +578,9 @@ $.extend( $.Isotope.prototype, { _fitRowsLayout : function( $elems ) { + this.width = this.element.width(); var instance = this; + return $elems.each( function() { var $this = $(this), atomW = $this.outerWidth(true), @@ -616,7 +618,6 @@ }, _fitRowsResize : function() { - this.width = this.element.width(); return this.reLayout() }