Results 1 to 3 of 3

Thread: Bug in ToolbarDroppable.calculateEntryIndex()

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Nov 2010
    Posts
    14

    Default Bug in ToolbarDroppable.calculateEntryIndex()

    In Ext.ux.ToolbarDroppable.calculateEntryIndex(), xTotal and xHover are used in calculating the index of a dropped item. Both are horizontal pixel counts but xTotal is relative to the viewport and xHover is relative to the toolbar:

    Code:
    xTotal     = toolbar.getEl().getXY()[0],
    xHover     = e.getXY()[0] - xTotal;
    This is not obvious in http://dev.sencha.com/deploy/dev/exa...e-sorting.html because the toolbar is very close to the left side of the viewport.

    Code:
    xTotal     = toolbar.getEl().getXY()[0],
    xHover     = e.getXY()[0];
    With the above fix, dropping items on my toolbar works as expected. Without it, items are dropped to the left of where they are expected.

  2. #2
    Ext JS Premium Member
    Join Date
    Nov 2010
    Posts
    14

    Default

    This bug is also in Ext4.

  3. #3
    Sencha Premium User karlsnyder0's Avatar
    Join Date
    Mar 2010
    Location
    Maryland, USA
    Posts
    92

    Default

    I wish I had found this post before figuring out why the Toolbar Items were never dropped in the proper place. I have confirmed this a bug in Ext4.

Similar Threads

  1. [FIXED]ToolbarDroppable Safari render issue
    By steffenk in forum Ext:Bugs
    Replies: 2
    Last Post: 13 Mar 2011, 10:03 PM
  2. [DEFER-698] Ext.ux.ToolbarDroppable
    By tobiu in forum Ext 3.x: Bugs
    Replies: 5
    Last Post: 13 Oct 2010, 6:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •