1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    7
    Answers
    2
    Vote Rating
    0
    8whiterice is on a distinguished road

      0  

    Default Answered: Dynamic height for dataview component?

    Answered: Dynamic height for dataview component?


    Hi,
    In the following code (tweaked from the example Sencha code for dataview), the dataview is not shown due to having a height=0. As the content of the dataview could be dynamic, is there anyway to make the component visible without using a static height on initialization? Thank you!

    Code:
    var container = Ext.create('Ext.Container', {
        fullscreen: true,
            scrollable: true,
            style: 'margin-bottom:7px',
            items: [
                {
                    html: '<div>heading 1</div>'
                },
                {
                    xtype: 'dataview',
                    store: {
                        fields: ['name', 'age'],
                        data: [
                            {name: 'Jamie',  age: 100},
                            {name: 'Rob',   age: 21},
                            {name: 'Tommy', age: 24},
                            {name: 'Jacky', age: 24},
                            {name: 'Ed',   age: 26}
                        ]
                    },
                    itemTpl: '<div>{name} is {age} years old</div>'
                },
                {
                    html: '<div style="height:600px">heading 2</div>'
                }
            ]
    });

  2. Ok, found the answer... need to manually set "scrollable: false"

  3. #2
    Sencha User
    Join Date
    Oct 2012
    Posts
    7
    Answers
    2
    Vote Rating
    0
    8whiterice is on a distinguished road

      0  

    Default


    Ok, found the answer... need to manually set "scrollable: false"

Tags for this Thread

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