Roo/bootstrap/LayoutMasonry.js
[roojs1] / Roo / bootstrap / LayoutMasonry.js
index 799fdb0..bb90785 100644 (file)
@@ -661,11 +661,6 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
                     height = Math.floor(this.unitHeight * (b.y - 1) + (this.gutter * (b.y - 2)) + b.el.getPadding('tb'));
                 }
                 
-                if(b.videourl && b.videourl.length) {
-                    console.log([width, height]);
-                    alert([width, height]);
-                }
-                
                 b.el.setWidth(width);
                 b.el.setHeight(height);
                 // iframe?
@@ -688,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){