Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Feb 2010
    Posts
    8
    Vote Rating
    0
    rupesh.patayane is on a distinguished road

      0  

    Default [CLOSED] AssertionError in BorderLayout (Hosted Mode)

    [CLOSED] AssertionError in BorderLayout (Hosted Mode)


    When changing layout of a LayoutContainer from BorderLayout to some other layout the following exception occurs:

    java.lang.AssertionError: BorderLayout needs a LayoutContainer
    at com.extjs.gxt.ui.client.widget.layout.BorderLayout.setContainer(BorderLayout.java:162)
    at com.extjs.gxt.ui.client.widget.Container.setLayout(Container.java:597)
    at com.extjs.gxt.ui.client.widget.LayoutContainer.setLayout(LayoutContainer.java:281)
    ....

    The code that does this:

    public void onModuleLoad(){
    final Viewport viewport = new Viewport();
    viewport.setLayout(new BorderLayout());

    Label label = new Label("Some Text");
    viewport.add(label);
    RootPanel.get().add(viewport);

    Timer t = new Timer() {

    @Override
    public void run() {
    MessageBox.alert("Alert", "Change layout", new Listener<MessageBoxEvent>() {

    @Override
    public void handleEvent(MessageBoxEvent be) {
    viewport.setLayout(new CenterLayout());
    }
    });

    }
    };
    t.schedule(1000);
    viewport.layout();
    }


    GXT Version: 2.1.1
    GWT version: 2.0.4
    Mode: Hosted

    Regards
    Rupesh

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,703
    Vote Rating
    107
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      0  

    Default


    This should already be fixed in a later version. Try to update to GXT 2.2 beta1 for example

Similar Threads

  1. [CLOSED] [1.1.3] Dispatcher and Hosted Mode
    By amundb in forum Ext GWT: Bugs (1.x)
    Replies: 3
    Last Post: 23 Jan 2009, 12:36 PM
  2. Replies: 1
    Last Post: 30 Nov 2008, 9:22 PM
  3. [CLOSED] Hosted mode layout not working
    By algesten in forum Ext GWT: Bugs (1.x)
    Replies: 3
    Last Post: 11 Sep 2008, 5:38 AM
  4. [CLOSED] Differences between Hosted mode and Web Mode
    By zaccret in forum Ext GWT: Bugs (1.x)
    Replies: 4
    Last Post: 23 May 2008, 1:06 AM