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,332
    Answers
    124
    Vote Rating
    83
    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

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