1. #1
    Sencha User
    Join Date
    Jul 2010
    Posts
    3
    Vote Rating
    0
    anibalpotenza is on a distinguished road

      0  

    Default GXT 3.0 don't have AbsoluteLayout, I can't migrate from version

    GXT 3.0 don't have AbsoluteLayout, I can't migrate from version


    Hello, we are from Argentina, sorry my English. We develope a medium application, about 500.000 records in the database. We use to create Forms the AbsoluteLayout class. For example:

    this.setLayout(new AbsoluteLayout()); // my FormPanel

    // myComponent is an object that can be a Label, TextField, CheckBox, etc.
    // widgetPanel is a ContentPanel


    widgetPanel.setPosition(myComponent.getX(), myComponent.getY());
    widgetPanel.setWidth(myComponent.getWidth());
    widgetPanel.setHeight(myComponent.getHeight());
    widgetPanel.add((Widget) myComponent);

    this.add(widgetPanel); // add the component in an absolute position and size


    Ok, now we start to migrate to new version, we have a top layer that hide the componentes, for example: Buttons extends SenchaButton so there is no problem to migrate the application. But the BIG problem are we can't find a similar way to position the componentes in Absolute position and size with GXT 3.0

    ¿Can you help us with this? We spent a lot of time finding a solution in Internet, but at the moment we fail.

  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

      1  

    Default


    You might be able to use the GWT AbsolutePanel. Have you tried that?

    AbsoluteLayout should not have any extra functionality that AbsolutePanel does not offer, so this might work.

  3. #3
    Sencha User
    Join Date
    Jul 2010
    Posts
    3
    Vote Rating
    0
    anibalpotenza is on a distinguished road

      0  

    Default


    We use de AbsolutePanel, but not working well. This is important because our programming is like:

    panel.add(depositoLabel, new FixLayout(0, 0, Margin.getLeftTopMargin()));
    panel.add(descripcionLabel, new FixLayout(depositoLabel, Fix.ALIGN_RIGHT_DOWN));
    panel.add(direccionLabel, new FixLayout(descripcionLabel, Fix.ALIGN_RIGHT_DOWN));
    panel.add(ordenLabel, new FixLayout(direccionLabel, Fix.ALIGN_RIGHT_DOWN));
    panel.add(depositoTF, new FixLayout(depositoLabel, Fix.GLUE_RIGHT));
    panel.add(descripcionTF, new FixLayout(descripcionLabel, Fix.GLUE_RIGHT));
    panel.add(direccionTF, new FixLayout(direccionLabel, Fix.GLUE_RIGHT, Margin.getRightMargin()));
    panel.add(ordenIF, new FixLayout(ordenLabel, Fix.GLUE_RIGHT, Margin.getBottomRightMargin()));

    With this code, we use a class that position the components in the panel with absolute position, and now, we can't do it. We decided to stop the migration and wait a new version.

  4. #4
    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

      1  

    Default


    We use de AbsolutePanel, but not working well.
    With this code, we use a class that position the components in the panel with absolute position, and now, we can't do it.
    Can you please explain what exactly is not working well? AbsolutePanel position its children also absolutly

  5. #5
    Sencha User
    Join Date
    Jul 2010
    Posts
    3
    Vote Rating
    0
    anibalpotenza is on a distinguished road

      0  

    Default


    Hello Sven, I check de AbsolutePanel personally and It works find, now we be able to advance with the source code migration. Thank you very much.

Thread Participants: 1

Tags for this Thread