View Full Version : Ext.draw.Sprite#setStyle bug: style is not applied when type = text

7 Dec 2013, 4:36 AM
Ext version tested:

Ext 4.2.1
Browser versions tested against:

Google Chrome 31

Ext.draw.Sprite#setStyle doesn't apply styles to child tspans when type is set to text
Steps to reproduce the problem:

Create Ext.draw.Component one item of which has type text
Render the component
apply style to the text element with
setStyle({cursor: 'pointer'})
The result that was expected:

the cursor over text should have 'pointer' style
The result that occurs instead:

the cursor over text doesn't have 'pointer' style
Standalone testcase:


7 Dec 2013, 6:09 AM
Add this to your css:

.x-surface tspan {
cursor: inherit;