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

index a6293fb..70c4ccc 100644 (file)
@@ -147,13 +147,13 @@ Roo.extend(Roo.bootstrap.Brick, Roo.bootstrap.Component,  {
     {
         var paragraph = this.el.select('.roo-brick-paragraph', true).first();
 //        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());
+//        }
         
     },