1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    87
    Vote Rating
    3
    esag_dk is on a distinguished road

      0  

    Default FieldSet&Grid issues

    FieldSet&Grid issues


    Version(s) of Ext GWT
    Ext GWT 3.0 Release Candidate 2

    Browser versions and OS (and desktop environment, if applicable)
    IE 9 Windows 7

    Virtual Machine
    No

    Description
    There seems to be a bug using a Grid inside a FieldSet inside a Container which gives the remaining space to that FieldSet. Sounds confusing, so just look at my test case. A Grid is placed into a FieldSet. The FieldSet is placed into a BorderLayoutContainer (center). In that case the grid's cells aren't visible, although the contained values are visible through Firebug. Same behaviour while using a VerticalLayoutContainer and adding the FieldSet with VerticalLayoutData(1,1).

    Run mode
    Development Mode

    Test case

    Module:
    Code:
      public void onModuleLoad()
        {
            final MyGrid grid = new MyGrid();
            BorderLayoutContainer blc = new BorderLayoutContainer();
            blc.setPixelSize(800, 250);
    
            FieldSet fieldSet = new FieldSet();
            fieldSet.setHeadingText("My Fieldset");
            fieldSet.setWidget(grid);
            blc.setNorthWidget(new Label("Muh"), new BorderLayoutData(40));
            blc.setCenterWidget(fieldSet);
            RootPanel.get().add(blc);
        }
    MyGrid:
    Any Grid you want, e.g the one posted here.

  2. #2
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    This isn't a bug. A Grid doesn't have any specific size until one is given to it. You can give a Grid a size by putting it into a panel that assigns a size to its children (such as Viewport) or by specifying a size explicitly with setters. Since the FieldSet doesn't assign a size, you'll have to do so yourself.

    That being said, why exactly do you need to have a Grid in a FieldSet? A Grid isn't a form field.

    I've moved this thread to the Discussion forum.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar