Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-7687 in a recent build.
  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    83
    Vote Rating
    5
    mpost is on a distinguished road

      0  

    Default First panel in accordion multi layout is always expanded

    First panel in accordion multi layout is always expanded


    REQUIRED INFORMATION
    Ext version tested:
    • Ext 4.1.1
    • Ext 4.1.1 rev a
    Browser versions tested against:
    • Safari 6.0.1
    • Chrome 22.0.1229.94
    DOCTYPE tested against:
    • HTML5
    Description:
    • When using an accordion layout with the multi config, the first panel is always expanded, even when it is explicitly set to collapsed:false.
    Steps to reproduce the problem:
    • Create a panel with accordion layout.
    • Add several sub-panels.
    • Set all sub-panels to collapsed:true except for the last one which should be collapsed:false.
    The result that was expected:
    • Last panel is expanded
    • All other panels are collapsed
    The result that occurs instead:
    • First and last panel are both expanded.
    • All other panels are collapsed
    Test Case:
    PHP Code:
    Ext.create('Ext.Panel', {
        
    title'Example',
        
    width100,
        
    renderToExt.getBody(),
        
    layout: {
            
    type'accordion',
            
    align'stretch',
            
            
    // switch to false to see expected behavior
            
    multitrue
        
    },
        
    defaults: {
            
    height100
        
    },
        
    items: [
            {
            
    xtype'panel',
            
    title'panel 1',
            
    html'panel 1',
            
    collapsedtrue},
        {
            
    xtype'panel',
            
    title'panel 2',
            
    html'panel 2',
            
    collapsedtrue},
        {
            
    xtype'panel',
            
    title'panel 3',
            
    html'panel 3',
            
    collapsedtrue},
        {
            
    xtype'panel',
            
    title'panel 4',
            
    html'panel 4',
            
    collapsedfalse},

            ]
    });
    ​ 
    HELPFUL INFORMATION
    See this URL for live test case:
    http://jsfiddle.net/GdQtk/

    Debugging already done:
    • none
    Possible fix:
    • One workaround is to attach a listener to the first panel for the beforerender event. In the listener, set panel.collapsed = true to force the first panel to a collapsed state.
    Additional CSS used:
    • only default ext-all.css
    Operating System:
    • OS X 10.8.2
    • Windows 7 Pro SP1
    Last edited by mpost; 3 Nov 2012 at 10:09 AM. Reason: fix code formatting

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,795
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,828
    Vote Rating
    609
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    FYI, due to some recent refactoring, this is already fixed for 4.2.0.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 2

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