Roo/bootstrap/LayoutMasonry.js
authoredward <edward@roojs.com>
Wed, 26 Apr 2017 06:08:30 +0000 (14:08 +0800)
committeredward <edward@roojs.com>
Wed, 26 Apr 2017 06:08:30 +0000 (14:08 +0800)
Roo/bootstrap/LayoutMasonry.js

index 3acf0a9..bfe2b1a 100644 (file)
@@ -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);