View Full Version : [CLOSED]defaultAnchor has no effect on collapsed items

28 Feb 2011, 10:04 AM
Create a panel with anchor layout, docs say defaultAnchor is set to '100%' by default, which sets all children to anchor: '100%' by default. This does not seem to be the case with collapsed children.

If you do not explicitly set anchor: '100%', the collapsed items will not be set to full width on initial load.

Ext.create('widget.panel', {
layout: 'anchor',
title: 'Test anchor',
defaults: {
// anchor: '100%',
collapsible: true,
collapsed: true
items: [
{ title: 'Testing' },
{ title: 'Testing' },
{ title: 'Testing' },
{ title: 'Testing' }


28 Feb 2011, 11:30 AM
Accordion layout will support multiple expanded Panels at once in future. This probably won't make it into PR3, but PR4.

But I tried your example locally (My code might have more bugfixes than the release you are on) and I got


So it looks like you'll be OK in PR3.