Roo/bootstrap/Img.js
authorJulian Knowles <julian@roojs.com>
Mon, 20 Jan 2014 10:25:04 +0000 (18:25 +0800)
committerJulian Knowles <julian@roojs.com>
Mon, 20 Jan 2014 10:25:04 +0000 (18:25 +0800)
Roo/bootstrap/Img.js

index 02fe551..565152b 100644 (file)
@@ -44,6 +44,10 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
         
         cfg.src = this.src || cfg.src;
         
+        if (['rounded','circle','thumbnail'].indexOf(this.border)) {
+            cfg.cls += ' img-' + this.border;
+        }
+        
         return cfg;
     }