Roo/bootstrap/Brick.js
authoredward <edward@roojs.com>
Thu, 28 Dec 2017 08:18:31 +0000 (16:18 +0800)
committeredward <edward@roojs.com>
Thu, 28 Dec 2017 08:18:31 +0000 (16:18 +0800)
Roo/bootstrap/Brick.js

index 922fa8c..101edbf 100644 (file)
@@ -151,14 +151,14 @@ Roo.extend(Roo.bootstrap.Brick, Roo.bootstrap.Component,  {
         
         paragraph.setWidth(paragraph.getWidth() + paragraph.getPadding('lr'));
         
-//        if(this.bgimage.length){
-//            var image = this.el.select('.roo-brick-image-view', true).first();
-//            image.setWidth(paragraph.getWidth());
+        if(this.bgimage.length){
+            var image = this.el.select('.roo-brick-image-view', true).first();
+            image.setWidth(paragraph.getWidth());
 //            image.setHeight(paragraph.getWidth());
-//            
-//            this.el.setHeight(paragraph.getWidth());
-//            
-//        }
+            
+            this.el.setHeight(paragraph.getHeight());
+            
+        }
         
     },