From f081fea415fa845286c3dbccb2ad6b02a70d0b5f Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Thu, 4 Nov 2010 07:40:53 -0400 Subject: [PATCH] MeasureContainerHeight => GetContainerSize --- src/jquery.molequul.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/jquery.molequul.js b/src/jquery.molequul.js index bebb6b7..cafca20 100755 --- a/src/jquery.molequul.js +++ b/src/jquery.molequul.js @@ -377,8 +377,9 @@ return this; }, - _masonryMeasureContainerHeight : function() { - this.containerHeight = Math.max.apply( Math, this.colYs ) - this.posTop; + _masonryGetContainerSize : function() { + var containerHeight = Math.max.apply( Math, this.colYs ) - this.posTop; + return { height: containerHeight }; }, @@ -419,8 +420,8 @@ return this; }, - _clearFloatMeasureContainerHeight : function () { - this.containerHeight = this.clearFloat.height; + _clearFloatGetContainerSize : function () { + return { height : this.clearFloat.height }; }, _clearFloatResize : function() { @@ -446,14 +447,9 @@ this[ layoutMethod ]( $elems ); - // $elems.molequul( layoutMethod, props ); - - // set the height of the container to the tallest column - this[ '_' + layoutMode + 'MeasureContainerHeight' ](); - var containerStyle = { height: this.containerHeight }; - - + // set the size of the container + var containerStyle = this[ '_' + layoutMode + 'GetContainerSize' ](); this.styleQueue.push({ $el: this.element, style: containerStyle });