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
    657
    Vote Rating
    39
    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.

    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
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,845
    Vote Rating
    517
    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
    657
    Vote Rating
    39
    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
    8,778
    Vote Rating
    240
    Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of

      0  

    Default

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

Thread Participants: 2

Tags for this Thread