1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    1
    Vote Rating
    0
    brettneck is on a distinguished road

      0  

    Default Tree Width in Accordion

    Tree Width in Accordion


    I'm fresh to ext, so I'm sorry if this is a lame question ... I'm trying to create an accordion with multiple trees in it. For some reason, every tree in the accordion renders fine except for the second tree which ends up with a width of 40px.... no matter what I do. Give me the smack down! -->

    function init() {

    var itemStore = Ext.create('Ext.data.TreeStore', {
    proxy: {
    type: 'ajax',
    url: 'sample-tree-nodes.json'
    }
    });

    var item1 = Ext.create('Ext.tree.Panel', {
    title: 'Accordion Item 1',
    store: itemStore,
    rootVisible: false
    });

    var item2 = Ext.create('Ext.tree.Panel', {
    title: 'Accordion Item 2',
    store: itemStore,
    rootVisible: false
    });

    var item3 = Ext.create('Ext.tree.Panel', {
    title: 'Accordion Item 3',
    store: itemStore,
    rootVisible: false
    });

    var item4 = Ext.create('Ext.tree.Panel', {
    title: 'Accordion Item 4',
    store: itemStore,
    rootVisible: false
    });

    var accordion = Ext.create('Ext.Panel', {
    margins:'5 0 5 5',
    split:true,
    height: 650,
    width: 200,
    layout:'accordion',
    items: [item1, item2, item3, item4]
    });

    accordion.render(Ext.getBody());
    }

    Ext.onReady(init);

  2. #2
    Sencha User
    Join Date
    Aug 2007
    Location
    Munich, Germany
    Posts
    135
    Vote Rating
    0
    gelleneu is on a distinguished road

      0  

    Default


    I've the same Problem!

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    6
    Vote Rating
    0
    mohanimus is on a distinguished road

      0  

    Default Possible fix

    Possible fix


    Adding an align property to my Accordion fixed this for me

    Code:
    layout: 'accordion',
    layoutConfig: {
       align: 'stretch'
    }
    Correction: This did work for me, but further down the path of developing my app the problem has reappeared.

  4. #4
    Sencha User
    Join Date
    May 2008
    Posts
    45
    Vote Rating
    0
    codeart.ch is on a distinguished road

      0  

Similar Threads

  1. TriggerField width problem in Accordion Layout
    By Gabor Turi in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 9 Dec 2009, 4:39 AM
  2. Accordion Layout with Zero Width Collapsed
    By jbaldwin in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 5 Sep 2008, 9:23 AM
  3. Replies: 18
    Last Post: 2 Nov 2007, 7:00 AM
  4. Accordion (1.1-beta2) width in Internet Explorer
    By Lester Burlap in forum Ext 1.x: User Extensions and Plugins
    Replies: 0
    Last Post: 30 Oct 2007, 6:43 AM

Thread Participants: 3

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