When using CookieProvider, the following code breaks with
Code:
m has no properties, ext-all-debug.js (line 14303)
Test file:
Code:
<html>
<head>
<title>BorderLayout/Accordion</title>
<link rel="stylesheet" type="text/css" href="res/ext/css/ext-all.css" />
<script type="text/javascript" src="res/js/ext-base.js"></script>
<script type="text/javascript" src="res/js/ext-all-debug.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
new Ext.Viewport({
layout:'border',
items: [
{
region: 'north',
height: 32
},{
region: 'west',
width: 300,
layout: 'accordion',
layoutConfig: {
animate: true
},
items: [
{
title: 'Pain1'
},
{
title: 'Pain2'
}
]
},
{
region:'center'
}
]
});
});
</script>
</head>
<body>
</body>
</html>
Firebug says that getMargin() returned "undefined", and the getSize() result looks weird, but I've no idea why or how this is related to the CookieProvider. Looks like a bug as it works with
Code:
//Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
Screenshot from Firebug

[EDIT]Removed some flaws in the test case[/EDIT]