Roo/bootstrap/LayoutMasonry.js
authorAlan Knowles <alan@roojs.com>
Tue, 20 Oct 2015 10:30:13 +0000 (18:30 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 20 Oct 2015 10:30:13 +0000 (18:30 +0800)
Roo/bootstrap/LayoutMasonry.js

index 6272686..b7f7ec8 100644 (file)
@@ -264,7 +264,7 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
         var totalColWidth = this.cols * this.columnWidth;
         var padavail = this.containerWidth - totalColWidth;
         // so for 2 columns - we need 3 'pads'
-        this.padWidth = Math.floor(padavail ( this.cols + 1));
+        this.padWidth = Math.floor(padavail /  ( this.cols + 1));
         
         
     },