Roo/bootstrap/Img.js
authoredward <edward@roojs.com>
Wed, 13 Jan 2016 03:21:25 +0000 (11:21 +0800)
committeredward <edward@roojs.com>
Wed, 13 Jan 2016 03:21:25 +0000 (11:21 +0800)
Roo/bootstrap/Img.js

index 85069f5..e68f85e 100644 (file)
@@ -54,10 +54,18 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
 
     getAutoCreate : function()
     {   
-        if(this.src){
-            this.createSingleImg();
+        if(this.src || (!xsUrl && !smUrl && !mdUrl && !lgUrl)){
+            return this.createSingleImg();
         }
         
+        var cfg = {
+            tag: 'div',
+            cls: 'roo-image-responsive-group',
+            cn: []
+        }
+        
+        
+        
     },
     
     createSingleImg : function()