Saturday, March 13, 2010

Fixing ExtJS setStyle problem in IE

Back with programming post, if you use ExtJS and you had a problem with IE then see if the setStyle is the one issuing it. To fix this :

Find
H=="opacity"
or find the line that have
H=="opacity"?this.setOpacity(I):this.dom.style[w(H)]=I

Replace it with
if(H=="opacity"){this.setOpacity(I)}else{try{this.dom.style[w(H)]=I}catch(e){}}

Hope this helps