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

index 55fa7f2..bdd2e01 100644 (file)
@@ -1077,12 +1077,12 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
             
             pos.push({
                 x : maxX - (this.unitWidth + this.gutter) * 1,
-                y : y
+                y : minY
             });
 
             pos.push({
-                x : x + (this.unitWidth + this.gutter) * 1,
-                y : y
+                x : maxX - (this.unitWidth + this.gutter) * 1,
+                y : minY + (this.unitWidth + this.gutter) * 1,
             });
             
             pos.push({