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

index bb78507..60e6f8b 100644 (file)
@@ -235,7 +235,7 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
         
         var totalBoxWidth = this.cols * boxWidth - this.padWidth;
         Roo.log(totalBoxWidth);
-        var avail = (containerWidth - totalBoxWidth) / this.cols;
+        var avail = Math.floor((containerWidth - totalBoxWidth) / this.cols);
         Roo.log(avail);
         this.colWidth = boxWidth + avail - this.padWidth;
         Roo.log(this.colWidth);