From d35a7829aa634eda84949a62d1165c6bf6624f60 Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 18 Dec 2018 12:04:07 +0800 Subject: [PATCH] Roo/bootstrap/LayoutMasonry.js --- Roo/bootstrap/LayoutMasonry.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Roo/bootstrap/LayoutMasonry.js b/Roo/bootstrap/LayoutMasonry.js index 53b18fb20d..8568f1011b 100644 --- a/Roo/bootstrap/LayoutMasonry.js +++ b/Roo/bootstrap/LayoutMasonry.js @@ -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? -- 2.39.2