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

index 7d73cd7..e26d2d2 100644 (file)
@@ -150,13 +150,15 @@ Roo.extend(Roo.bootstrap.Brick, Roo.bootstrap.Component,  {
         var paragraph = this.el.select('.roo-brick-paragraph', true).first();
         
         paragraph.setWidth(paragraph.getWidth() + paragraph.getPadding('lr'));
+        paragraph.setHeight(paragraph.getWidth() + paragraph.getPadding('tb'));
         
         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(image.getWidth());
+            this.el.setHeight(image.getHeight());
+            paragraph.setHeight(image.getWidth());
             
         }