PDA

View Full Version : [FIXED]Expand click error: toCompBox is undefined



oaugustus
14 Mar 2011, 6:54 AM
Hi all,

I have created a component like follow image. When I click in expand button at collapsed panel, I have the error message: "toCompBox is undefined" at compEl.setLeftTop(toCompBox.left, toCompBox.top);
ext-all-debug.js (linha 60980).

http://www.neton.com.br/bug2.png

evant
14 Mar 2011, 6:57 AM
Please post a short test case.

oaugustus
14 Mar 2011, 7:19 AM
Hi,

Follow the test case:



Ext.define('TestPanel',{
extend: 'Ext.Panel',
renderTo: Ext.getBody(),
height: 500,
layout: {
type: 'border'
},
initComponent : function(){
this.items = [
{
title: 'West',
region: 'west',
width: 380,
collapsible: true,
split: true
},
{
xtype: 'tabpanel',
region: 'center',
items: [
{
title: 'One',
layout: {
type: 'border'
},
items: [
{
xtype: 'panel',
region: 'center'
},
{
title: 'Templates',
region: 'east',
width: 300,
itemId: 'template',
split: true,
collapsible: true,
collapsed: true,
html: 'Under construction'
}
]
},
{
title: 'Two'
}
]
}
]

this.callParent(arguments);
}
});

var a = new TestPanel();

evant
14 Mar 2011, 12:54 PM
Thanks, fixed.