Roo/bootstrap/LayoutMasonry.js
authorEdward <edward@roojs.com>
Tue, 18 Dec 2018 04:04:07 +0000 (12:04 +0800)
committerEdward <edward@roojs.com>
Tue, 18 Dec 2018 04:04:07 +0000 (12:04 +0800)
Roo/bootstrap/LayoutMasonry.js

index 53b18fb..8568f10 100644 (file)
@@ -651,10 +651,6 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
             
             Roo.each(box, function(b,kk){
                 
-                if(b.videourl && b.videourl.length) {
-                    
-                }
-                
                 b.el.position('absolute');
                 
                 var width = Math.floor(this.unitWidth * b.x + (this.gutter * (b.x - 1)) + b.el.getPadding('lr'));
@@ -665,6 +661,10 @@ 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) {
+                    alert([width, height]);
+                }
+                
                 b.el.setWidth(width);
                 b.el.setHeight(height);
                 // iframe?