projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
103c00f
)
Roo/bootstrap/LayoutMasonry.js
author
edward
<edward@roojs.com>
Wed, 26 Apr 2017 06:08:30 +0000
(14:08 +0800)
committer
edward
<edward@roojs.com>
Wed, 26 Apr 2017 06:08:30 +0000
(14:08 +0800)
Roo/bootstrap/LayoutMasonry.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/LayoutMasonry.js
b/Roo/bootstrap/LayoutMasonry.js
index
3acf0a9
..
bfe2b1a
100644
(file)
--- a/
Roo/bootstrap/LayoutMasonry.js
+++ b/
Roo/bootstrap/LayoutMasonry.js
@@
-561,6
+561,14
@@
Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component, {
maxX = maxX - this.unitWidth * mx - this.gutter * (mx - 1) - this.padWidth;
+ if(maxX < minX){
+ Roo.each(box, function(b){
+
+ b.el.setVisibilityMode(Roo.Element.DISPLAY);
+ b.el.hide();
+
+ }, this);
+ }
}, this);