PDA

View Full Version : setSrc of Ext.ImageComponent doesn't redraw the change



vadimv
13 Apr 2011, 7:33 AM
Is this a bug ?, see reply1 and reply7 : http://www.sencha.com/forum/showthread.php?130066-setSrc-of-Ext.ImageComponent&p=590776#post590776
Version Number: 4.0.0beta2

steffenk
13 Apr 2011, 7:38 AM
or the fix (Ext.ImageComponent):


setSrc: function(src) {
var me = this,
img = me.el;
me.src = src;
if (img) {
img.dom.src = src;
}
}

Animal
13 Apr 2011, 9:53 AM
Fixed now, thanks.

BTW, the class is now called Ext.Img in the newest code to be released.

The "Component" suffix was redundant; It is a Component. And "img" is the kind of element it encapsulates.