Roo/bootstrap/LayoutMasonry.js
[roojs1] / Roo / bootstrap / LayoutMasonry.js
index 6e4058a..7569d4a 100644 (file)
@@ -36,7 +36,7 @@ Roo.bootstrap.LayoutMasonry = function(config){
          * @param {Roo.bootstrap.LayoutMasonry} this
          * @param {Roo.EventObject} e
          */
-        "layout" : true,
+        "layout" : true
     });
     
 };
@@ -242,6 +242,7 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
         this.colWidth = boxWidth + avail - this.padWidth;
         
         this.unitWidth = Math.round((this.colWidth - (this.gutter * 2)) / 3);
+        
         this.unitHeight = this.boxHeight > 0 ? this.boxHeight  : this.unitWidth;
     },
     
@@ -639,6 +640,8 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
         var pos = this.el.getBox(true);
         var x = pos.x;
         var y = pos.y;
+        Roo.log(pos);
+        alert(JSON.stringify(pos));
         var maxY = [];
         
         for (var i = 0; i < this.cols; i++){