Roo/bootstrap/Img.js
authorAlan Knowles <alan@roojs.com>
Fri, 1 Sep 2017 05:18:50 +0000 (13:18 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 1 Sep 2017 05:18:50 +0000 (13:18 +0800)
Roo/bootstrap/Img.js

index fa1ca55..e1312b7 100644 (file)
@@ -176,7 +176,8 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
     
     setSrc : function(url)
     {
-        this.el.dom.src =  url;
+        this.src =  url;
+        this.el.select('img', true).first().dom.src =  url;
     }