Roo/bootstrap/LayoutMasonry.js
[roojs1] / Roo / bootstrap / LayoutMasonry.js
index 8d4ecae..bb90785 100644 (file)
@@ -242,8 +242,6 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
         this.colWidth = boxWidth + avail - this.padWidth;
         
         this.unitWidth = Math.round((this.colWidth - (this.gutter * 2)) / 3);
-        Roo.log(this.unitWidth);
-        alert(this.unitWidth)
         this.unitHeight = this.boxHeight > 0 ? this.boxHeight  : this.unitWidth;
     },
     
@@ -685,6 +683,10 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
             
             y = maxY[col];
             
+            if(k == 0) {
+                console.log([x, y]);
+                alert([x, y]);
+            }
             var positions = [];
             
             switch (box.length){