parky128
5 Jan 2012, 8:57 AM
I was just debugging my application and realised I had sencha-touch-all and not the sencha-touch-all-debug file included.
After I swapped files over and ran my application again, an error was raised that I have not seen before:
Uncaught Error: [ERROR][Ext.Container#onFirstItemAdd] Adding a card to a tab container without specifying any tab configuration
Switching back to the non debug file doesnt give this error and my application displays fine.
I only have a couple of TabPanel views defined like so:
Ext.define('PinpointersTouch.view.MainView', {
extend: 'Ext.TabPanel',
xtype: 'mainview',
requires: [
'PinpointersTouch.view.UnitList',
'PinpointersTouch.view.GMapContainer',
'PinpointersTouch.view.PreferencesView',
'PinpointersTouch.view.History'
],
config: {
fullscreen: true,
tabBar : {
docked : 'bottom',
layout : {
pack : 'center'
}
},
items: [
{
xtype: 'unitslist',
title: 'Locations',
iconCls: 'locate',
iconMask: true
},{
xtype: 'historyview',
title: 'History',
iconCls: 'time',
iconMask: true
},{
xtype: 'gmapcontainer',
title: 'Map',
iconCls: 'maps',
iconMask: true
},{
xtype: 'toolbar',
docked: 'top',
ui: 'light',
itemId: 'topToolbarMain',
defaults: {
iconMask: true
},
items: [
{ xtype: 'spacer' },
{ iconCls: 'refresh', itemId: 'btnRefresh' },
{ iconCls: 'user', itemId: 'btnUserLogout' },
{ iconCls: 'settings', itemId: 'btnUserPrefs' }
]
}
]
}
});
And...
Ext.define('PinpointersTouch.view.History', {
extend: 'Ext.TabPanel',
xtype: 'historyview',
requires: [
'PinpointersTouch.view.JourneySummaryView',
'PinpointersTouch.view.JourneyDetailView'
],
config: {
fullscreen: true,
tabBar : {
hidden: true
},
items: [{
xtype: 'journeysummaryview'
},{
xtype: 'journeydetailview'
}],
}
});
What could be the problem here?
Thanks
After I swapped files over and ran my application again, an error was raised that I have not seen before:
Uncaught Error: [ERROR][Ext.Container#onFirstItemAdd] Adding a card to a tab container without specifying any tab configuration
Switching back to the non debug file doesnt give this error and my application displays fine.
I only have a couple of TabPanel views defined like so:
Ext.define('PinpointersTouch.view.MainView', {
extend: 'Ext.TabPanel',
xtype: 'mainview',
requires: [
'PinpointersTouch.view.UnitList',
'PinpointersTouch.view.GMapContainer',
'PinpointersTouch.view.PreferencesView',
'PinpointersTouch.view.History'
],
config: {
fullscreen: true,
tabBar : {
docked : 'bottom',
layout : {
pack : 'center'
}
},
items: [
{
xtype: 'unitslist',
title: 'Locations',
iconCls: 'locate',
iconMask: true
},{
xtype: 'historyview',
title: 'History',
iconCls: 'time',
iconMask: true
},{
xtype: 'gmapcontainer',
title: 'Map',
iconCls: 'maps',
iconMask: true
},{
xtype: 'toolbar',
docked: 'top',
ui: 'light',
itemId: 'topToolbarMain',
defaults: {
iconMask: true
},
items: [
{ xtype: 'spacer' },
{ iconCls: 'refresh', itemId: 'btnRefresh' },
{ iconCls: 'user', itemId: 'btnUserLogout' },
{ iconCls: 'settings', itemId: 'btnUserPrefs' }
]
}
]
}
});
And...
Ext.define('PinpointersTouch.view.History', {
extend: 'Ext.TabPanel',
xtype: 'historyview',
requires: [
'PinpointersTouch.view.JourneySummaryView',
'PinpointersTouch.view.JourneyDetailView'
],
config: {
fullscreen: true,
tabBar : {
hidden: true
},
items: [{
xtype: 'journeysummaryview'
},{
xtype: 'journeydetailview'
}],
}
});
What could be the problem here?
Thanks