Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Aug 2009
    Posts
    2
    Vote Rating
    0
    Jan Nawara is on a distinguished road

      0  

    Default [FIXED] Draggable is ignoring width/height of proxy/ghosted components in a container

    [FIXED] Draggable is ignoring width/height of proxy/ghosted components in a container


    In the onMouseMove method of the com.extjs.gxt.ui.client.fx.Draggable class the proxyEl width and height are not used if a container instance is set. This seems to prevent components from staying withing their container when dragged (such as a window).

    This code

    Code:
          if (container != null) {
            left = Math.max(left, conX);
            left = Math.min(conX + conWidth - dragWidget.getOffsetWidth(), left);
            top = Math.min(conY + conHeight - dragWidget.getOffsetHeight(), top);
            top = Math.max(top, conY);
          }
    when changed to

    Code:
          if (container != null) {
            left = Math.max(left, conX);
            left = Math.min(conX + conWidth - width, left);
            top = Math.min(conY + conHeight - height, top);
            top = Math.max(top, conY);
          }
    makes the window stay withing the top LayoutContainer in the following example.

    Code:
    public void onModuleLoad() {
            Viewport viewport = new Viewport();
            viewport.setLayout(new RowLayout());
            top = new LayoutContainer();
            Button showButton = new Button("Show", new SelectionListener<ButtonEvent>() {
                    @Override
                    public void componentSelected(ButtonEvent ce) {
                        Window window = new Window();
                        window.setSize(500, 300);
                        window.setPlain(true);
                        window.setMaximizable(true);
                        window.setHeading("Hello Window");
                        window.setConstrain(true);
                        window.setContainer(top.getElement());
                        window.show();
                        window.getDraggable().setContainer(top);
                    }
                });
            top.add(showButton);
            viewport.add(top, new RowData(1, 1));
            LayoutContainer bottom = new LayoutContainer();
            bottom.add(new TaskBar());
            viewport.add(bottom, new RowData(1, 30));
            RootPanel.get().add(viewport);
        }
    I'm not sure if this change affects anything else in a bad way but it works for a window.

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    The change is correct. When using a proxy the dragWidget is hidden and so it has a height of 0 and a width of 0.

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."