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

index 20e8699..d2f53f7 100644 (file)
@@ -661,6 +661,11 @@ 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) {
+                    b.el.setWidth(width);
+                    b.el.setHeight(height);
+                }
+//                
 //                b.el.setWidth(width);
 //                b.el.setHeight(height);
                 // iframe?