Roo/bootstrap/LayoutMasonry.js
authorAlan Knowles <alan@roojs.com>
Tue, 20 Oct 2015 07:34:15 +0000 (15:34 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 20 Oct 2015 07:34:15 +0000 (15:34 +0800)
Roo/bootstrap/LayoutMasonry.js

index 071a4a1..3d3c259 100644 (file)
@@ -79,7 +79,7 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
     
     initEvents : function()
     {
-        this.el.on('resize', this.resize, this); /// was window resize... - let's see if this works..
+        
         
         this.on('childrenrendered', function() {
             Roo.log("children rendered");
@@ -89,6 +89,10 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
             // this.initStamp(); //???
             this.currentSize = this.el.size();
             
+            /// was window resize... - let's see if this works..
+            this.el.on('resize', this.resize, this); 
+            
+            
             this.layout();
             
         } ,this);