Vertical only drag / drop

  • Wednesday, January 7, 2009 at 7:07 am //
  • By: admin //
  • Category: xn--zlvp56j.com
  • edit
  • I have a column of items and I wish to let the user reorder then items. I am using a custom subclass of Ext.dd.DDProxy to control the drag drop. The endDrag method has been defined to reorder the items based on the “y” value of the dropped item and is working OK.

    However the proxy tracks both the horizontal and the vertical movement of the mouse, how do I make it so the proxy only tracks the vertical movement? I have thought of overriding DDProxy::handleMouseMove() and setting the value of X in the event before passing it on to DDProxy::handleMouseMove(), is there a better way?


  • http://extjs.com/deploy/dev/docs/?class=Ext.dd.DD&member=setXConstraint


  • Thanks calling this.setXConstraint(0, 0) from my contractor did the job.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Vertical only drag / drop , Please add it free.