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

index 4ae56d8..166ce0f 100644 (file)
@@ -1048,7 +1048,7 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
 
             pos.push({
                 x : maxX - this.unitWidth * box[1].x - this.gutter * (box[1].x - 1),
-                y : minY + (this.unitWidth + this.gutter) * 1
+                y : minY + (this.unitWidth + this.gutter) * (box[1].y - 1)
             });
             
             return pos;
@@ -1056,8 +1056,8 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
         }
         
         pos.push({
-            x : x,
-            y : y
+            x : maxX - this.unitWidth * box[0].x - this.gutter * (box[0].x - 1),
+            y : minY + (this.unitWidth + this.gutter) * 1
         });
 
         pos.push({