Roo/bootstrap/Brick.js
authoredward <edward@roojs.com>
Wed, 19 Apr 2017 08:35:36 +0000 (16:35 +0800)
committeredward <edward@roojs.com>
Wed, 19 Apr 2017 08:35:36 +0000 (16:35 +0800)
Roo/bootstrap/Brick.js

index 64f6ecd..d42448c 100644 (file)
@@ -147,16 +147,14 @@ Roo.extend(Roo.bootstrap.Brick, Roo.bootstrap.Component,  {
     {
         var paragraph = this.el.select('.roo-brick-paragraph', true).first();
         
-        Roo.log(paragraph.getWidth());
-        
 //        paragraph.setHeight(paragraph.getWidth() + paragraph.getPadding('tb'));
-//        paragraph.setHeight(paragraph.getWidth());
+        paragraph.setHeight(paragraph.getWidth());
         
-//        if(this.bgimage.length){
-//            var image = this.el.select('.roo-brick-image-view', true).first();
-//            image.setWidth(paragraph.getWidth());
-//            image.setHeight(paragraph.getHeight());
-//        }
+        if(this.bgimage.length){
+            var image = this.el.select('.roo-brick-image-view', true).first();
+            image.setWidth(paragraph.getWidth());
+            image.setHeight(paragraph.getHeight());
+        }
         
     },