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

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