Roo/bootstrap/LayoutMasonry.js
authorAlan Knowles <alan@roojs.com>
Tue, 20 Oct 2015 09:54:04 +0000 (17:54 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 20 Oct 2015 09:54:04 +0000 (17:54 +0800)
Roo/bootstrap/LayoutMasonry.js

index 6300fc4..e6f53a2 100644 (file)
@@ -107,7 +107,7 @@ Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component,  {
     reloadItems: function()
     {
         this.bricks = this.el.select('.masonry-brick', true);
-        this.bricks.on('resize', this.layout, this); // risky - might result in infinite loop.
+        this.bricks.on('resize', function() { Roo.log("resize brick"); this.layout() } , this); // risky - might result in infinite loop.
         
         Roo.log(this.bricks.elements.length);
     },