1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    57
    Vote Rating
    1
    deepak_patil1222 is on a distinguished road

      0  

    Default Unanswered: height and width in percentage

    Unanswered: height and width in percentage


    how to give the percentage width config for container and panels in ExtJS ??? sencha touch allows for the same whereas i am not able to give the height/width in percentage with respect to parent contaiener inn ExtJS.

    any idea would be helpfull.

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi Deepak,

    If you want to give height and width in %, use anchor layout like-
    Code:
    Ext.create('Ext.Panel', {
        width: 500,
        height: 400,
        title: "AnchorLayout Panel",
        layout: 'anchor',
        renderTo: Ext.getBody(),
        items: [
            {
                xtype: 'panel',
                title: '75% Width and 20% Height',
                anchor: '75% 20%'
            },
            {
                xtype: 'panel',
                title: '100% Width and 50% Height',
                anchor: '100% 50%'     
            },
            {
                xtype: 'panel',
                title: '100% Width and 30% Height',
                anchor: '100%0 30%'
            }
        ]
    });
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

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