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

index 56396e3..c1edf3c 100644 (file)
@@ -239,7 +239,7 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
         
         this.colWidth = boxWidth + avail - this.padWidth;
         
-        this.unitWidth = Math.floor((this.colWidth - (this.gutter * 2)) / 3);
+        this.unitWidth = Math.round((this.colWidth - (this.gutter * 2)) / 3);
         this.unitHeight = this.boxHeight > 0 ? this.boxHeight  : this.unitWidth;
     },