1. #1
    Ext User
    Join Date
    Nov 2008
    Posts
    6
    Vote Rating
    0
    TinKim is on a distinguished road

      0  

    Default Using DD-Proxy with proxy beside (not under!) the ursor?

    Using DD-Proxy with proxy beside (not under!) the ursor?


    Hello together,

    what do I have to do with a simple drag-and-drop-proxy-object...

    Code:
    var ddProxy = new Ext.dd.DDProxy('ddItem', 'theDdGroup');
    ...so the proxy will appear BESIDE the cursor? I want have hover effects under the cursor while dragging with a proxy.

    The dragged proxy should be always about 50px bottom right to the cursor while dragging.

    The grid-to-grid-example does what I want:
    http://www.extjs.com/deploy/dev/exam...d_to_grid.html

    But I don't get how to get the same behaviour on a simple object like my ddProxy shown above.

    Any ideas?
    Thanks a lot!
    Kim

  2. #2

  3. #3
    Ext User
    Join Date
    Nov 2008
    Posts
    6
    Vote Rating
    0
    TinKim is on a distinguished road

      0  

    Arrow


    Thanks for your quick answer. I tried it like this:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <script type="text/javascript" src="extjs/ext-base.js"></script>
      <script type="text/javascript" src="extjs/ext-all-debug.js"></script>
      <script type="text/javascript" src="dd.js"></script>
      <title>DDProxy with autoOffset</title>
    </head>
    <body>
    <br /><br /><br /><br /><a href="www.youngvisions.net" onmousemove="alert('move');">Link</a><br /><br /><br /><br /><br />
    <div style="width: 200px; height: 20px; background-color: #090;" id="ddItem">HELLO</div>
    <script type="text/javascript">
    
    var ddProxy = new Ext.dd.DDProxy('ddItem', 'theDdGroup');
    ddProxy.autoOffset(10, 20);
    
    </script>
    </body>
    </html>
    But ddProxy.autoOffset(10, 20); makes no difference :-( What's wrong there?

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,483
    Vote Rating
    35
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Code:
    var ddProxy = new Ext.dd.DDProxy('ddItem', 'theDdGroup');
    ddProxy.autoOffset = function(x, y) {
        this.setDelta(-10, -20);
    };

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar