1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    4
    Vote Rating
    0
    Fabriciogs is on a distinguished road

      0  

    Default Panel width

    Panel width


    My problem is: when i add a panel in container, the panel width is 100%, but i want, the panel width, is a title width or a content width.

    var panel = Ext.widget('panel');
    panel.height = 100;
    panel.title = "dkadjoawduioahduiahduia";

    container.add(panel);

    the container is 100% of layout;

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You will need to provide/calc a width, or it will default to the size of the container.

    Code:
    var container = Ext.create('Ext.container.Container', {
        width: 400,
        height: 200,
        renderTo: Ext.getBody(),
        border: 1,
        style: {borderColor:'#000000', borderStyle:'solid', borderWidth:'1px'}
    });
    
    var panel = Ext.widget('panel');
    panel.height = 100;
    panel.width = 100; // calc width of title
    panel.title = "dkadjoawduioahduiahduia";
    
    container.add(panel);
    Scott.

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