[CLOSED] DOM Drag-Drop example initial drag height

  1. #1

    [CLOSED] DOM Drag-Drop example initial drag height

    I have been trying to implement a custom control based on the DOM drag-drop example at https://examples3.ext.net/#/DragDrop/Basic/Dom/

    It's almost perfect, however, one bug that I can't remove is the initial drag height, which seems to be double the icon position's offset from the top of its containing DIV. If you click on the top icon, it drags correctly at the mouse height. However icons further down jump down the page away from the mouse pointer as soon as dragging starts, and the further down the icon is from the containing DIV's top, the further the icon is offset from the mouse position.

    The problem exists in the example for IE, Chrome & Firefox. Is there any remedy for this that you are aware of?
    Last edited by Daniil; Jul 09, 2015 at 5:06 PM. Reason: [CLOSED]
  2. #2
    Hello @electromorph!

    Can you check the MVC version of this example on latest SVN release?

    It will show you an alternate way to overcome that issue.

    As far as I could tell, moving the item using the default drag behavior results on this. But if, instead of dragging the component, you drag its 'ghost' -- and reproduce the component exactly as it is in its "ghost", then you can have this pretty much working. You can also 'hide' the original while moving the ghost copy; on the drop operation it will move the element to its new position and you can unset the hidden flag.

    You can see the evolution on the example to fix that on SVN commit 6450. (svn diff -c 6450).

    Let me know if this does not help you fix your drag and drop.
    Fabrício Murta
    Developer & Support Expert
  3. #3

    Problem fixed

    Thanks for your help Fabricio - that's perfect.

Similar Threads

  1. Replies: 0
    Last Post: Jun 12, 2014, 1:11 PM
  2. Drag'n Drop
    By Yannis in forum 1.x Help
    Replies: 1
    Last Post: Oct 28, 2009, 7:14 PM
  3. Drag Drop
    By designworxz in forum 1.x Help
    Replies: 0
    Last Post: Feb 20, 2009, 12:46 AM
  4. [CLOSED] MultiSelect with drag and drop, Drop listener
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 30, 2009, 9:25 AM
  5. Drag & Drop
    By iwen in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 26, 2008, 2:23 PM

Tags for this Thread

Posting Permissions