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
    Cluj, Romania
    Posts
    655
    Vote Rating
    37
    vadimv has a spectacular aura about vadimv has a spectacular aura about

      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,593
    Vote Rating
    424
    LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future

      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
    Cluj, Romania
    Posts
    655
    Vote Rating
    37
    vadimv has a spectacular aura about vadimv has a spectacular aura about

      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
    5,003
    Vote Rating
    94
    Gary Schlosberg is just really nice Gary Schlosberg is just really nice Gary Schlosberg is just really nice Gary Schlosberg is just really nice

      0  

    Default


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

Thread Participants: 2

Tags for this Thread