You found a bug! We've classified it as EXTJS-11729 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    642
    Vote Rating
    25
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Post [4.2.x] Sprite.initDraggable throws an error when sprite is added to surface.

    [4.2.x] Sprite.initDraggable throws an error when sprite is added to surface.


    Ext version tested
    • 4.2.2
    • 4.2.1
    Description
    When trying a sprite with draggable: true, initDraggable throws an error because of missing reference/value of the surface element

    Steps to reproduce the problem

    https://fiddle.sencha.com/#fiddle/1kg

    Code:
        Ext.create('Ext.draw.Component', {
            renderTo: Ext.getBody(),
            width: 200,
            height: 200,
            items: [{
               draggable: true,
               type:'circle',        
               radius:90,        
               x:100,       
               y:100,        
                fill:'blue'
            }]
        });
    Result that occurs
    Last edited by Gary Schlosberg; 18 Nov 2013 at 9:45 AM. Reason: add test fiddle

  2. #2
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,340
    Vote Rating
    131
    LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all

      0  

    Default


    Looks like a bug, although 'ill' should probably be 'fill'

  3. #3
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    642
    Vote Rating
    25
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Default


    Quote Originally Posted by LesJ View Post
    Looks like a bug, although 'ill' should probably be 'fill'
    thx…that's because of the code formatter + copy&paste

  4. #4
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    3,840
    Vote Rating
    69
    Gary Schlosberg is a jewel in the rough Gary Schlosberg is a jewel in the rough Gary Schlosberg is a jewel in the rough

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 2

Tags for this Thread