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

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..." hd porno faketaxi