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

index 1bf7874..3819a2e 100644 (file)
@@ -1097,7 +1097,7 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
         if(box[0].size == 'xs' && box[1].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
             });