Roo/bootstrap/LayoutMasonry.js
authoredward <edward@roojs.com>
Mon, 18 Dec 2017 08:12:41 +0000 (16:12 +0800)
committeredward <edward@roojs.com>
Mon, 18 Dec 2017 08:12:41 +0000 (16:12 +0800)
Roo/bootstrap/LayoutMasonry.js

index 60e6f8b..56396e3 100644 (file)
@@ -226,19 +226,19 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
         }
         
         var containerWidth = this.containerWidth;
-        Roo.log(containerWidth);
+        
         var cols = Math.floor(containerWidth / boxWidth);
-        Roo.log(cols);
+        
         this.cols = Math.max( cols, 1 );
         
         this.cols = this.maxCols > 0 ? Math.min( this.cols, this.maxCols ) : this.cols;
         
         var totalBoxWidth = this.cols * boxWidth - this.padWidth;
-        Roo.log(totalBoxWidth);
+        
         var avail = Math.floor((containerWidth - totalBoxWidth) / this.cols);
-        Roo.log(avail);
+        
         this.colWidth = boxWidth + avail - this.padWidth;
-        Roo.log(this.colWidth);
+        
         this.unitWidth = Math.floor((this.colWidth - (this.gutter * 2)) / 3);
         this.unitHeight = this.boxHeight > 0 ? this.boxHeight  : this.unitWidth;
     },