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

index b2f722c..901937a 100644 (file)
@@ -1076,12 +1076,12 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
         if(box[0].size == 'xs' && box[1].size == 'xs' && box[2].size == 'xs'){
             
             pos.push({
-                x : maxX - (this.unitWidth + this.gutter) * 1,
+                x : maxX - this.unitWidth * box[0].x - this.gutter * (box[0].x - 1),
                 y : minY
             });
 
             pos.push({
-                x : maxX - (this.unitWidth + this.gutter) * 1,
+                x : maxX - this.unitWidth * box[1].x - this.gutter * (box[1].x - 1),
                 y : minY + (this.unitWidth + this.gutter) * 1,
             });