Results 1 to 2 of 2

Thread: [CLOSED] I am not sure ,and is this a bug?

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User cabe's Avatar
    Join Date
    Nov 2008
    Location
    ??
    Posts
    19
    Vote Rating
    0
      0  

    Default [CLOSED] I am not sure ,and is this a bug?

    I want to control a window when it is dragged,so I add a dragListener to it,this is my test code:

    public class WindowTest implements EntryPoint {
    private Window w;
    public void onModuleLoad() {
    w = new Window();
    w.setSize(300, 300);
    w.setUrl("http://www.163.com");
    w.show();
    DragListener dragListener = new DragListener() {
    @Override
    public void dragStart(DragEvent de) {
    System.out.println("start"+"***"+w.getHeight());
    }

    @Override
    public void dragMove(DragEvent de) {
    System.out.println("move"+"***"+w.getHeight());
    }

    @Override
    public void dragEnd(DragEvent de) {
    System.out.println("end"+"***"+w.getHeight());
    }
    };
    w.getDraggable().addDragListener(dragListener);
    }
    }


    after I drag it the print result is:

    start***0
    move***0
    move***0
    end***300

    that means the size of the window is missing when dragStart and dragMove,but I really need to know it because I want to control the region where window can be dragged to.Is this a bug? If not what can I do if I want to satisfy my purpose?
    古士羽 from China

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    132
      0  

    Default

    No it is not a bug. The window is not visible while dragging as you drag the proxy

Posting Permissions

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