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

index 67ceb9d..e174f87 100644 (file)
@@ -136,6 +136,12 @@ 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'));
+        
+        if(this.bgimage.length){
+            var image = this.el.select('.roo-brick-image', true).first();
+            cls += ' roo-brick-image';
+        }
+        
     },
     
     enter: function(e, el)