PDA

View Full Version : Problem in changing the Ext.draw item property IE8



rameshmn
9 Apr 2012, 10:13 PM
Hi,
I am using Ext.draw component in my application. I have an issue with setting a properties (opacity,stroke-dasharray) to the draw componenet item in IE8 which works fine in Firefox,Chrome.


Works fine in IE8 also if we mention the properties while creating the item of the draw component as like below.
var drawComponent = Ext.create('Ext.draw.Component', {
viewBox: false,
items: [{
type: 'rect',
id:'myRect',
fill: '#FFFFFF',
width:100,
height:100,
x: 10,
y: 10,
opacity:1,
'stroke-dasharray':5,
stroke:'#000000'
}]
});






I have to change some of the properties like stroke,opacity based on some condition, which is not happening. Trying to change the property as like below


Ext.get('myRect').setStyle('stroke',#FFFFFF);


The above line works fine in FF,Chrome but not in IE8.

Thanks,
Ramesh MN