PDA

View Full Version : [OPEN] Package: ext-charts, draggable=true for Ext.draw.Sprite not working



hlurger
8 May 2014, 11:36 AM
Charts-kitchensink is still using "ext-charts".

To reproduce the problem, just change one sprite of xt-5.0.0.736\examples\charts-kitchensink\app\view\charts\draw\Sencha.js to draggable:true and reload the page.

Following error is thrown:

Uncaught TypeError: Cannot read property 'dom' of undefined Svg.js?_dc=1399577440288:591

If you add the sprite after rendering from Ext.draw.Component the cursor is changing to the move symbol, but you can not move the sprite.



//draw ... instance of Ext.draw.Component

draw.surface.add({
type: 'image',
src: 'resources/elements/Lights0018_S.jpg',
draggable: true,
width: 200,
height: 200,
x: x,
y: y
});


Expected result

*) Page should be loaded without throwing an error
*) Sprite should be draggable

hlurger
8 May 2014, 1:31 PM
http://www.sencha.com/forum/showthread.php?258845

Looks like there is a problem since ext 4.2, which is still not solved =(