Roo/bootstrap/LayoutMasonry.js
authorAlan Knowles <alan@roojs.com>
Tue, 20 Oct 2015 05:06:16 +0000 (13:06 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 20 Oct 2015 05:06:16 +0000 (13:06 +0800)
Roo/bootstrap/LayoutMasonry.js

index 134afcf..2bf6716 100644 (file)
@@ -154,7 +154,10 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
     positionItem : function( item, x, y, isInstant ) {
         if ( isInstant ) {
           // if not transition, just set CSS
-            item.goTo( x, y );
+          
+            item.setXY([x,y]);
+            
+            
         } else {
             item.moveTo( x, y );
         }
@@ -193,7 +196,7 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
         var i = this.cols;
         this.colYs = [];
         while (i--) {
-          this.colYs.push( 0 );
+            this.colYs.push( 0 );
         }
     
         this.maxY = 0;