Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha User
[FNR] Window invisible while dragging if useProxy = false
Just noticed that in rev 1806 (the one that can be downloaded as GXT v3 DP5) window becomes invisible while dragging it if useProxy is set to false.
Code:
public class GxtModule implements EntryPoint {
@Override
public void onModuleLoad() {
final Window w = new Window();
// This is the line, that makes window go invisible while dragging
w.getDraggable().setUseProxy(false);
w.setHeight(300);
w.setWidth(400);
w.center();
w.show();
}
}
-
From looking at http://staging.sencha.com:8080/examp...lace:draggable it appears that this has been fixed in a commit made after DP5 - can you confirm?
-
Sencha User
Yes, I confirm, that it's been fixed (at-least it's working in a nightly build examples). You can close this thread.
-
Sencha User
Code:
final Window w = new Window();
w.getDraggable().setUseProxy(false);
would still make window invisible while moving in Beta 1. The only way I can get window visible when moving is by creating new Draggable object.
Code:
import com.google.gwt.core.client.EntryPoint;
import com.sencha.gxt.fx.client.Draggable;
import com.sencha.gxt.widget.core.client.Window;
public class GxtModule implements EntryPoint {
public void onModuleLoad() {
final Window w = new Window();
w.setHeadingText("Drag me");
Draggable d = new Draggable(w);
d.setUseProxy(false);
w.setPixelSize(200, 100);
w.show();
w.center();
}
}
Can you please confirm if that's the desired way or it is still a bug for Window?
Edit: This code will hide windows content anyway, so, I can't drag window and have it's content visible while dragging. It works for ContentPanel thogh.
Last edited by raivis; 16 Dec 2011 at 4:02 AM.
Reason: correction
-
Sencha User
I noticed one more thing: If you drag window by clicking and dragging it's content, the content is visible. But if you drag window by holding it's header, window content is not visible. My guess is that in the first case new draggable is working, but in the second case when I hold windows header, windows default draggable is working.