Roo/bootstrap/LayoutMasonry.js
authorjohn <john@roojs.com>
Mon, 11 Dec 2017 04:26:37 +0000 (12:26 +0800)
committerjohn <john@roojs.com>
Mon, 11 Dec 2017 04:26:37 +0000 (12:26 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/bootstrap/LayoutMasonry.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index f6e140d..4c3d0b7 100644 (file)
@@ -1258,7 +1258,7 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
         this.bricks = [];
         //this.getChildContainer().dom.innerHTML = "";
         this.el.dom.innerHTML = '';
-    }
+    },
     
     getSelected : function()
     {
index a0d2d84..28b3a26 100644 (file)
@@ -31328,7 +31328,7 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
         this.bricks = [];
         //this.getChildContainer().dom.innerHTML = "";
         this.el.dom.innerHTML = '';
-    }
+    },
     
     getSelected : function()
     {
index 89999ec..7ab8644 100644 (file)
@@ -1321,7 +1321,7 @@ B.push({x:x+(this.unitWidth+this.gutter)*1,y:y});B.push({x:x+(this.unitWidth+thi
 );D.push({x:A-this.unitWidth*C[3].x-this.gutter*(C[3].x-1),y:B+(this.unitWidth+this.gutter)*1});return D;}D.push({x:A-this.unitWidth*C[0].x-this.gutter*(C[0].x-1),y:B});D.push({x:A-this.unitWidth*C[1].x-this.gutter*(C[1].x-1),y:B+(this.unitWidth+this.gutter)*2}
 );D.push({x:A-this.unitWidth*C[1].x-this.gutter*(C[1].x-1)-this.unitWidth*C[2].x-this.gutter*(C[2].x-1),y:B+(this.unitWidth+this.gutter)*2});D.push({x:A-this.unitWidth*C[1].x-this.gutter*(C[1].x-1)-this.unitWidth*C[2].x-this.gutter*(C[2].x-1)-this.unitWidth*C[3].x-this.gutter*(C[3].x-1),y:B+(this.unitWidth+this.gutter)*2}
 );return D;},addItem:function(A){var cn=new Roo.bootstrap.MasonryBrick(A);cn.parentId=this.id;cn.onRender(this.el,null);return cn;},register:function(A){this.bricks.push(A);A.masonryId=this.id;},clearAll:function(){this.bricks=[];this.el.dom.innerHTML='';
-}getSelected:function(){for(var i=0;i<this.bricks.length;i++){Roo.log(this.bricks)[i];}}});
+},getSelected:function(){for(var i=0;i<this.bricks.length;i++){Roo.log(this.bricks)[i];}}});
 // Roo/bootstrap/LayoutMasonryAuto.js
 Roo.bootstrap.LayoutMasonryAuto=function(A){Roo.bootstrap.LayoutMasonryAuto.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.LayoutMasonryAuto,Roo.bootstrap.Component,{isFitWidth:false,isOriginLeft:true,isOriginTop:false,isLayoutInstant:false,isResizingContainer:true,columnWidth:0,maxCols:0,padHeight:10,isAutoInitial:true,gutter:0,containerWidth:0,initialColumnWidth:0,currentSize:null,colYs:null,maxY:0,padWidth:10,tag:'div',cls:'',bricks:null,cols:0,_isLayoutInited:null,getAutoCreate:function(){var A={tag:this.tag,cls:'blog-masonary-wrapper '+this.cls,cn:{cls:'mas-boxes masonary'}
 };return A;},getChildContainer:function(){if(this.boxesEl){return this.boxesEl;}this.boxesEl=this.el.select('.mas-boxes').first();return this.boxesEl;},initEvents:function(){var A=this;if(this.isAutoInitial){Roo.log('hook children rendered');this.on('childrenrendered',function(){Roo.log('children rendered');