Roo/bootstrap/Brick.js
authoredward <edward@roojs.com>
Fri, 3 Mar 2017 06:26:00 +0000 (14:26 +0800)
committeredward <edward@roojs.com>
Fri, 3 Mar 2017 06:26:00 +0000 (14:26 +0800)
Roo/bootstrap/Brick.js

index dc6bd50..df7b2f2 100644 (file)
@@ -127,6 +127,11 @@ Roo.extend(Roo.bootstrap.Brick, Roo.bootstrap.Component,  {
         this.el.on('mouseenter'  ,this.enter, this);
         this.el.on('mouseleave', this.leave, this);
         
+        if(this.bgimage.length){
+            this.el.select('.roo-brick-image-view', true).first().on('mouseenter'  ,this.enter, this);
+            this.el.select('.roo-brick-image-view', true).first().on('mouseleave', this.leave, this);
+        }
+        
         Roo.EventManager.onWindowResize(this.resize, this); 
         
         this.resize();
@@ -141,8 +146,6 @@ Roo.extend(Roo.bootstrap.Brick, Roo.bootstrap.Component,  {
         if(this.bgimage.length){
             var image = this.el.select('.roo-brick-image-view', true).first();
             
-            Roo.log([paragraph.getHeight(), paragraph.getWidth()]);
-            
             image.setWidth(paragraph.getWidth());
             image.setHeight(paragraph.getHeight());
         }