-
6 May 2009 7:53 PM #1
[CLOSED] I am not sure ,and is this a bug?
[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
-
6 May 2009 10:11 PM #2
No it is not a bug. The window is not visible while dragging as you drag the proxy
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote