Results 1 to 2 of 2

Thread: DD Proxy automatic?

  1. #1
    Sencha User
    Join Date
    Apr 2014
    Posts
    105
    Answers
    10

    Default Answered: DD Proxy automatic?

    Hey together,
    I have a draggable panel. In extjs4 where was automatic the proxy following the cursor, but in extjs5 its gone.
    I can't find a proxy:true property or something like this.
    Can someone tell me what to do.
    Can I style it via css? I couldn't find some vars in the documentation.

    My panel now looks like this:

    Code:
    var panel = {
             xtype:'panel',
             height:30,
             margin:'5 0 0 0',
             width:170,
             cls:'blue-background-left-align',
             html:oInformation.title,
             type:columntype,
             columnid:oInformation.columnid,
             columnName:oInformation.name,
             columnTitle:oInformation.title,
             columntype:oInformation.columntype,
             draggable:
             {
                group:dragGroup,
                onMouseDown:function(){
                  that.markColumns(oInformation.columntype);
                },
                onMouseUp:function(){
                   that.unmarkColumns(oInformation.columntype);
                   if(this.hasBeenDragged === true){
                      this.panel.destroy();
                   }
                },
                startDrag:function(){
                   this.hasBeenDragged = true;
                   that.replacePanel(oInformation);
                },
                endDrag:function(){
                
                }
                
             }
          };

    Thanks for helping!

  2. Code:
    startDrag:function(){
                   this.panelProxy.ghost.addCls('x-wizard-drag');
                   this.hasBeenDragged = true;
                   that.replacePanel(oInformation);
                },
    Add a cls for the proxy ghost and style it or style the global class ( I think x-panel-ghost it was).

  3. #2
    Sencha User
    Join Date
    Apr 2014
    Posts
    105
    Answers
    10

    Default

    Code:
    startDrag:function(){
                   this.panelProxy.ghost.addCls('x-wizard-drag');
                   this.hasBeenDragged = true;
                   that.replacePanel(oInformation);
                },
    Add a cls for the proxy ghost and style it or style the global class ( I think x-panel-ghost it was).

Similar Threads

  1. Replies: 2
    Last Post: 5 Sep 2012, 7:29 AM
  2. Replies: 5
    Last Post: 25 May 2011, 11:02 AM
  3. automatic UI-testing
    By paco_online in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 30 Dec 2009, 2:26 AM
  4. Automatic fill
    By jamesjara in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 25 Jul 2009, 6:33 PM

Tags for this Thread

Posting Permissions

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