gregwoods
12 Oct 2012, 8:44 AM
I'm having an issue with the accordion layout since upgrading from 4.0.2 to 4.1.1. Our application uses accordions, and those accordions often contain footers via a dockedItems/bottom configuration. What has started happening is that, as soon the accordion switches its current view, the no longer displays properly.
Before:
http://cl.ly/image/3l3q0S3e2V0p
After clicking an accordion header (Notice the footer has changed):
http://cl.ly/image/2E1F1h3h3I1m
And here is the sample code I used to reproduce the bug:
<html>
<head>
<title>Hello Ext</title>
<link rel="stylesheet" type="text/css" href="extjs-4.1.1/resources/css/ext-all.css">
<script type="text/javascript" src="extjs-4.1.1/ext-debug.js"></script>
</head>
<body>
<script>
Ext.application({
name: 'HelloExt',
launch: function() {
var accordion = Ext.create('Ext.panel.Panel', {
layout:'accordion',
items:[
{
xtype:'panel',
title:'Test',
html:'Hello, World!'
},
{
xtype:'panel',
title:'Test',
html:'Hello, World!'
},
{
xtype:'panel',
title:'Test',
html:'Hello, World!'
}
],
dockedItems:[
{
xtype:'panel',
html:'This should be at the bottom',
dock:'bottom',
collapsible:false
}
]
});
Ext.create('Ext.container.Viewport', {
layout: 'fit',
title: 'Hello Ext',
items:[accordion],
height: 400
});
}
});
</script>
</body>
</html>
Any advice would be much appreciated!
Before:
http://cl.ly/image/3l3q0S3e2V0p
After clicking an accordion header (Notice the footer has changed):
http://cl.ly/image/2E1F1h3h3I1m
And here is the sample code I used to reproduce the bug:
<html>
<head>
<title>Hello Ext</title>
<link rel="stylesheet" type="text/css" href="extjs-4.1.1/resources/css/ext-all.css">
<script type="text/javascript" src="extjs-4.1.1/ext-debug.js"></script>
</head>
<body>
<script>
Ext.application({
name: 'HelloExt',
launch: function() {
var accordion = Ext.create('Ext.panel.Panel', {
layout:'accordion',
items:[
{
xtype:'panel',
title:'Test',
html:'Hello, World!'
},
{
xtype:'panel',
title:'Test',
html:'Hello, World!'
},
{
xtype:'panel',
title:'Test',
html:'Hello, World!'
}
],
dockedItems:[
{
xtype:'panel',
html:'This should be at the bottom',
dock:'bottom',
collapsible:false
}
]
});
Ext.create('Ext.container.Viewport', {
layout: 'fit',
title: 'Hello Ext',
items:[accordion],
height: 400
});
}
});
</script>
</body>
</html>
Any advice would be much appreciated!