Results 1 to 5 of 5

Thread: [FNR] Window invisible while dragging if useProxy = false

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    45
    Vote Rating
    0
      0  

    Default [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();
        }
    }

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Vote Rating
    93
      0  

    Default

    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?

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    45
    Vote Rating
    0
      0  

    Default

    Yes, I confirm, that it's been fixed (at-least it's working in a nightly build examples). You can close this thread.

  4. #4
    Sencha User
    Join Date
    Jul 2011
    Posts
    45
    Vote Rating
    0
      0  

    Default

    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

  5. #5
    Sencha User
    Join Date
    Jul 2011
    Posts
    45
    Vote Rating
    0
      0  

    Default

    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.

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
  •