From 0447174d0b8e347cb7f828a624925be9d95ce2af Mon Sep 17 00:00:00 2001 From: edward Date: Wed, 13 Jan 2016 11:19:15 +0800 Subject: [PATCH] Roo/bootstrap/Img.js --- Roo/bootstrap/Img.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Roo/bootstrap/Img.js b/Roo/bootstrap/Img.js index 435d4c2b14..85069f5efd 100644 --- a/Roo/bootstrap/Img.js +++ b/Roo/bootstrap/Img.js @@ -54,6 +54,14 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component, { getAutoCreate : function() { + if(this.src){ + this.createSingleImg(); + } + + }, + + createSingleImg : function() + { var cfg = { tag: 'img', cls: (this.imgResponsive) ? 'img-responsive' : '', @@ -87,7 +95,6 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component, { } - return (this.href) ? a : cfg; }, -- 2.39.2