1. #1
    Sencha User ITS_luka's Avatar
    Join Date
    Aug 2011
    Location
    Tbilisi, Georgia
    Posts
    19
    Vote Rating
    0
    ITS_luka is on a distinguished road

      0  

    Question GXT CenterLayout Doesn't work

    GXT CenterLayout Doesn't work


    when I do everything like said here: http://www.sencha.com/examples/pages/layouts/centerlayout.html
    I get this.
    Untitled.jpg
    what to do?

  2. #2
    Sencha User ITS_luka's Avatar
    Join Date
    Aug 2011
    Location
    Tbilisi, Georgia
    Posts
    19
    Vote Rating
    0
    ITS_luka is on a distinguished road

      0  

    Default


    oh.. here is the code:
    LayoutContainer lc = new LayoutContainer(); lc.setLayout(new CenterLayout());

    ContentPanel panel = new ContentPanel();
    panel.setBodyStyle("padding: 6px");
    panel.setFrame(true);
    panel.setHeading("CenterLayout");
    panel.addText("I should be centered");
    panel.setWidth(200);

    lc.add(panel);

    RootPanel.get().add(lc);

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,717
    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


    You have not set a size on your LayoutContainer. This is required.

  4. #4
    Sencha User ITS_luka's Avatar
    Join Date
    Aug 2011
    Location
    Tbilisi, Georgia
    Posts
    19
    Vote Rating
    0
    ITS_luka is on a distinguished road

      0  

    Default


    thank you