Results 1 to 3 of 3

Thread: multi accordion when multi should equal false

  1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    6
    Vote Rating
    0
      0  

    Default multi accordion when multi should equal false

    This accordion in a window allows multiple panels to be expanded <span style="color:#ff0000;">even when multi is specifically set to false</span>. Any idea why this is happening and how I can fix it? Not sure if this is a bug or my mistake. This happens in both Chrome and IE. I am using a ExtJS 4.0.7. Thanks.

    Code:
     
            var pop = Ext.create("Ext.Window", {
                title: "Available Layers",
                layout: {
                    type: "accordion",
                    fill: false,
                    shrinkToFit: false
                },
                width: 250,
                height: 350,
                autoScroll: true,
                items: [
                    Ext.create("Ext.Panel", {
                        title: "A",
                        collapsed: true,
                        items: [
                            Ext.create("Ext.Container", {
                                html: "A1"
                            }),
                            Ext.create("Ext.Container", {
                                html: "A2"
                            })
                        ]
                    }),
                    Ext.create("Ext.Panel", {
                        title: "A",
                        collapsed: true,
                        items: [
                            Ext.create("Ext.Container", {
                                html: "A1"
                            }),
                            Ext.create("Ext.Container", {
                                html: "A2"
                            })
                        ]
                    }),
                    Ext.create("Ext.Panel", {
                        title: "A",
                        collapsed: true,
                        items: [
                            Ext.create("Ext.Container", {
                                html: "A1"
                            }),
                            Ext.create("Ext.Container", {
                                html: "A2"
                            })
                        ]
                    }),
                    Ext.create("Ext.Panel", {
                        title: "A",
                        collapsed: true,
                        items: [
                            Ext.create("Ext.Container", {
                                html: "A1"
                            }),
                            Ext.create("Ext.Container", {
                                html: "A2"
                            })
                        ]
                    }),
                    Ext.create("Ext.Panel", {
                        title: "A",
                        collapsed: true,
                        items: [
                            Ext.create("Ext.Container", {
                                html: "A1"
                            }),
                            Ext.create("Ext.Container", {
                                html: "A2"
                            })
                        ]
                    }),
                    Ext.create("Ext.Panel", {
                        title: "A",
                        collapsed: true,
                        items: [
                            Ext.create("Ext.Container", {
                                html: "A1"
                            }),
                            Ext.create("Ext.Container", {
                                html: "A2"
                            })
                        ]
                    }),
                    Ext.create("Ext.Panel", {
                        title: "A",
                        collapsed: true,
                        items: [
                            Ext.create("Ext.Container", {
                                html: "A1"
                            }),
                            Ext.create("Ext.Container", {
                                html: "A2"
                            })
                        ]
                    }),
                    Ext.create("Ext.Panel", {
                        title: "A",
                        collapsed: true,
                        items: [
                            Ext.create("Ext.Container", {
                                html: "A1"
                            }),
                            Ext.create("Ext.Container", {
                                html: "A2"
                            })
                        ]
                    }),
                    Ext.create("Ext.Panel", {
                        title: "A",
                        collapsed: true,
                        items: [
                            Ext.create("Ext.Container", {
                                html: "A1"
                            }),
                            Ext.create("Ext.Container", {
                                html: "A2"
                            })
                        ]
                    }),
                    Ext.create("Ext.Panel", {
                        title: "A",
                        collapsed: true,
                        items: [
                            Ext.create("Ext.Container", {
                                html: "A1"
                            }),
                            Ext.create("Ext.Container", {
                                html: "A2"
                            })
                        ]
                    }),
                    Ext.create("Ext.Panel", {
                        title: "A",
                        collapsed: true,
                        items: [
                            Ext.create("Ext.Container", {
                                html: "A1"
                            }),
                            Ext.create("Ext.Container", {
                                html: "A2"
                            })
                        ]
                    }),
                    Ext.create("Ext.Panel", {
                        title: "A",
                        collapsed: true,
                        items: [
                            Ext.create("Ext.Container", {
                                html: "A1"
                            }),
                            Ext.create("Ext.Container", {
                                html: "A2"
                            })
                        ]
                    })
    
                ]
            });
      pop.show();
            pop.items.items[0].collapse();
            pop.items.items[0].expand();
    Last edited by mcornetto; 5 Mar 2013 at 11:35 PM. Reason: getting rid of blank space

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    Looks like this was a bug in 4.0.7 as in 4.1.1 only 1 will be expanded with your test
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Mar 2013
    Posts
    6
    Vote Rating
    0
      0  

    Default

    Trying to upgrade to 411 to see if it solves the problem. As usual upgrading is not a smooth process.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •