From 719f9c84a1d07ebf0964c934f7f71c60248f05ad Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Wed, 1 Jun 2011 11:40:56 -0400 Subject: [PATCH] tests : update centered masonry for v1.3 --- _posts/tests/2011-05-18-centered-masonry.html | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/_posts/tests/2011-05-18-centered-masonry.html b/_posts/tests/2011-05-18-centered-masonry.html index 931a184..a1ae9b1 100644 --- a/_posts/tests/2011-05-18-centered-masonry.html +++ b/_posts/tests/2011-05-18-centered-masonry.html @@ -92,21 +92,16 @@ category: tests var i = this.masonry.cols; this.masonry.colYs = []; while (i--) { - this.masonry.colYs.push( this.posTop ); + this.masonry.colYs.push( 0 ); } return this; }; - $.Isotope.prototype._masonryResize = function() { + $.Isotope.prototype._masonryResizeChanged = function() { var prevColCount = this.masonry.cols; // get updated colCount this._getCenteredMasonryColumns(); - if ( this.masonry.cols !== prevColCount ) { - // if column count has changed, do a new column cound - this.reLayout(); - } - - return this; + return ( this.masonry.cols !== prevColCount ) }; $.Isotope.prototype._masonryGetContainerSize = function() { @@ -117,7 +112,7 @@ category: tests var layoutWidth = this.masonry.cols * this.masonry.columnWidth, size = { - height : Math.max.apply( Math, this.masonry.colYs ) - this.posTop, + height : Math.max.apply( Math, this.masonry.colYs ), width : Math.min(layoutWidth, itemsTotalWidth ) }; return size;