From: Edward Date: Tue, 18 Dec 2018 04:05:12 +0000 (+0800) Subject: Roo/bootstrap/LayoutMasonry.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=2fff3f9a3204c0cc613bf1e91fcd627b1fb7d8c3 Roo/bootstrap/LayoutMasonry.js --- diff --git a/Roo/bootstrap/LayoutMasonry.js b/Roo/bootstrap/LayoutMasonry.js index 20e8699250..d2f53f7e76 100644 --- a/Roo/bootstrap/LayoutMasonry.js +++ b/Roo/bootstrap/LayoutMasonry.js @@ -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?