projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
08482b9
)
Roo/bootstrap/LayoutMasonry.js
author
Edward
<edward@roojs.com>
Tue, 18 Dec 2018 04:04:07 +0000
(12:04 +0800)
committer
Edward
<edward@roojs.com>
Tue, 18 Dec 2018 04:04:07 +0000
(12:04 +0800)
Roo/bootstrap/LayoutMasonry.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/LayoutMasonry.js
b/Roo/bootstrap/LayoutMasonry.js
index
53b18fb
..
8568f10
100644
(file)
--- 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){
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'));
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'));
}
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?
b.el.setWidth(width);
b.el.setHeight(height);
// iframe?