PDA

View Full Version : [CLOSED] ext-4.0.7-gpl, bug!



xjpmauricio
20 Oct 2011, 1:29 PM
Hi, just finished installing ExtJs update.

Here's a new error:




Ext.define('DocumentCreator', {
extend: 'Ext.Viewport',
initComponent: function() {
Ext.apply(this, {
layout: 'border',
items: [
{
id: 'documentCreator-toolbar',
region: 'north',
frame: false,
border: false,
height:85
},
{
id: 'documentCreator-wrapper',
region: 'center',
frame: false,
border: true
},
{
region: 'south',
frame: true,
border: true,
height: 25,
id: 'documentCreator-statusBar',
items: [
{
xtype: 'label',
id: 'lblSb1',
padding: '2'
},
{
xtype: 'label',
id: 'lblSb2',
padding: '2'
},
{
xtype: 'label',
id: 'lblSb3',
padding: '2'
},
{
xtype: 'label',
id: 'lblSb4',
padding: '2'
}
]
}
]
});
DocumentCreator.superclass.initComponent.apply(this, arguments);
}
});




Error: Error: Out of stack space

Browser: IE8

The error is in: "DocumentCreator.superclass.initComponent.apply(this, arguments);
"

edspencer
20 Oct 2011, 1:44 PM
It's usually better to use this.callParent(arguments) instead of referencing the superclass directly

xjpmauricio
21 Oct 2011, 11:32 AM
Hi, thanks a lot for the quick response. After looking at the UX folder i found a few examples and solved the question this way:



Ext.define('DocumentCreator', {
extend: 'Ext.Viewport',
constructor: function() {
Ext.apply(this, {
layout: 'border',
items: [
{
id: 'documentCreator-toolbar',
region: 'north',
frame: false,
border: false,
height:85
},
{
id: 'documentCreator-wrapper',
region: 'center',
frame: false,
border: true
},
{
region: 'south',
frame: true,
border: true,
height: 25,
id: 'documentCreator-statusBar',
items: [
{
xtype: 'label',
id: 'lblSb1',
padding: '2'
},
{
xtype: 'label',
id: 'lblSb2',
padding: '2'
},
{
xtype: 'label',
id: 'lblSb3',
padding: '2'
},
{
xtype: 'label',
id: 'lblSb4',
padding: '2'
}
]
}
]
});
this.callParent(arguments);
}
});




...just like you said so. Thanks a lot.

edspencer
21 Oct 2011, 12:39 PM
Great, glad you were successful with it :)