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

index 1b88578..ff919e6 100644 (file)
@@ -537,7 +537,12 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
             var mx = 0;
             
             Roo.each(box, function(b){
+                
+                b.el.setVisibilityMode(Roo.Element.DISPLAY);
+                b.el.show();
+
                 mx = Math.max(mx, b.x);
+                
             }, this);
             
             maxX = maxX - this.unitWidth * mx - this.gutter * (mx - 1) - this.padWidth;