thomas.oberthanner
8 Jan 2012, 2:25 PM
Hi,
i am using ExtJs 4.0.7 and stumbled about this problem:
Ext.util.CSS.updateRule(".icon-gravatar","background-color","#00FF00");
Ext.util.CSS.updateRule('.icon-gravatar', 'background-image','url(/myimage.jpg) !important');
When trying to change the background-color, everything is fine.
Updating the background-image does nothing. (manually changing the css-rule with firebug shows the expected result, so my url is working)
Why i do this:
i have to change the icon of an already rendered panel depending on runtime information. so i keep the iconCls and want to update the corresponding CSS-rule. if someone has a better idea, please let me know.
many thanks
tom
i am using ExtJs 4.0.7 and stumbled about this problem:
Ext.util.CSS.updateRule(".icon-gravatar","background-color","#00FF00");
Ext.util.CSS.updateRule('.icon-gravatar', 'background-image','url(/myimage.jpg) !important');
When trying to change the background-color, everything is fine.
Updating the background-image does nothing. (manually changing the css-rule with firebug shows the expected result, so my url is working)
Why i do this:
i have to change the icon of an already rendered panel depending on runtime information. so i keep the iconCls and want to update the corresponding CSS-rule. if someone has a better idea, please let me know.
many thanks
tom