Browse Source

src: move this.width calc to layout

pull/14/head
David DeSandro 14 years ago
parent
commit
7c69fbe456
  1. 3
      src/jquery.isotope.js

3
src/jquery.isotope.js

@ -578,7 +578,9 @@
$.extend( $.Isotope.prototype, { $.extend( $.Isotope.prototype, {
_fitRowsLayout : function( $elems ) { _fitRowsLayout : function( $elems ) {
this.width = this.element.width();
var instance = this; var instance = this;
return $elems.each( function() { return $elems.each( function() {
var $this = $(this), var $this = $(this),
atomW = $this.outerWidth(true), atomW = $this.outerWidth(true),
@ -616,7 +618,6 @@
}, },
_fitRowsResize : function() { _fitRowsResize : function() {
this.width = this.element.width();
return this.reLayout() return this.reLayout()
} }

Loading…
Cancel
Save