1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    14
    Vote Rating
    1
    jonmurua is on a distinguished road

      0  

    Default Unanswered: Heigth of List in VBox

    Unanswered: Heigth of List in VBox


    Hello:

    I have a Container which holds the followings in a vbox layout:
    • Form
    • List
    • List
    It is working fine if I set the flex values, however, I would like to have the list panels immediately after the end of the form and not starting at a set position.
    In addition, I would like to have the container panel as one scrollable panel, and 3 scrollable panels as I have them now.

    I have created a test container where I have the followings:
    • Panel with only html
    • List
    By setting the attribute heigth:'auto' to the first panel, I have manage to place the list just at the end of the first panel, however, it does not work with the formpanel or list.

    Any ideas?

    Code:
    Ext.define('PlatformOneFE.view.Property', {
        extend : 'Ext.Container',
        xtype : 'property',
    
    
        requires : [ 'PlatformOneFE.view.PropertyDetails',
                'PlatformOneFE.view.Contacts' ],
    
    
        config : {
            title : 'Property',
            layout : 'vbox',
    
    
            items : [ {
                xtype : 'propertyDetails',
                height : 'auto'
            }, {
                xtype : 'contacts',
                flex : 2
            }, ]
        }
    });
    Code:
    Ext.define('PlatformOneFE.view.PropertyDetails', {
        extend : 'Ext.Panel',
        xtype : 'propertyDetails',
    
    
        config : {
            html : 'Details in here',
        }
    });
    Code:
    Ext.define("PlatformOneFE.view.Contacts", {
        extend: 'Ext.List',
        xtype: 'contacts',
    
    
        config: {
            title: 'Contacts',
            itemTpl: [
                      '<h3>{lastname}, {firstname}</h3>'
                  ],
            store: 'Contacts',
    });

  2. #2
    Sencha User
    Join Date
    Feb 2012
    Location
    Paris
    Posts
    108
    Answers
    2
    Vote Rating
    1
    Tchinkatchuk is on a distinguished road

      0  

    Default


    I am looking for that too.
    I'ms ure it is possible but it would be nice to have an explanation about the correct layout configuration

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Location
    Paris
    Posts
    108
    Answers
    2
    Vote Rating
    1
    Tchinkatchuk is on a distinguished road

      0  

    Default


    Does anyone has a clue on this ?
    Dis you succeed "jonmurua" ?

  4. #4
    Sencha User
    Join Date
    Feb 2012
    Posts
    14
    Vote Rating
    1
    jonmurua is on a distinguished road

      0  

    Default


    No, I did not manage to do it.
    Anybody?

  5. #5
    Sencha User
    Join Date
    Jun 2011
    Posts
    47
    Vote Rating
    0
    borden0108 is on a distinguished road

      0  

    Default


    this needs to be a feature of sencha touch.

  6. #6
    grgur's Avatar
    Join Date
    Aug 2007
    Location
    Split, Croatia
    Posts
    155
    Answers
    10
    Vote Rating
    24
    grgur has a spectacular aura about grgur has a spectacular aura about

      0  

    Default


    If I understood that right, you want to maximize the height of the list? If so, the layout will do that for you.

    Instead of just setting layout: 'vbox', make sure you let the layout know how to align the nested component elements by changing the setting to

    Code:
    layout: {
    	type: 'vbox',
    	align: 'stretch'
    }
    If this does not suite your needs, please post an example or screenshots of what you want vs what you get. Thanks
    Grgur Grisogono
    Ext JS in Action SE co-author
    Exercising awesomeness at Modus Create - Official Sencha Partner

    Get in touch for Sencha Touch Training
    @ggrgur

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..."