Carlos.D
2 Dec 2011, 12:13 AM
Hi,
When you build a panel an onLaunch in a Controller only a white screen appear with PhoneGap, but works fine in a browser, sample :
app/app.js:
Ext.Loader.setConfig({ enabled: true });
Ext.application({
name: 'Test',
controllers: ['Control']
});
app/controller/control.js:
Ext.define('Test.controller.Control', {
extend: 'Ext.app.Controller',
onLaunch: function() {
var panel = Ext.create('Ext.Panel', {
items: [
{
dock : 'top',
xtype: 'toolbar',
title: 'Standard Titlebar'
},
{
dock : 'top',
xtype: 'toolbar',
ui : 'light',
items: [
{
text: 'Test Button'
}
]
}
],
html: 'Testing'
});
Ext.Viewport.add(panel);
Ext.Viewport.setActiveItem(0);
}
});
Any solution ? Perhaps can we said to the controller "wait for PhoneGap" ?
Thx
When you build a panel an onLaunch in a Controller only a white screen appear with PhoneGap, but works fine in a browser, sample :
app/app.js:
Ext.Loader.setConfig({ enabled: true });
Ext.application({
name: 'Test',
controllers: ['Control']
});
app/controller/control.js:
Ext.define('Test.controller.Control', {
extend: 'Ext.app.Controller',
onLaunch: function() {
var panel = Ext.create('Ext.Panel', {
items: [
{
dock : 'top',
xtype: 'toolbar',
title: 'Standard Titlebar'
},
{
dock : 'top',
xtype: 'toolbar',
ui : 'light',
items: [
{
text: 'Test Button'
}
]
}
],
html: 'Testing'
});
Ext.Viewport.add(panel);
Ext.Viewport.setActiveItem(0);
}
});
Any solution ? Perhaps can we said to the controller "wait for PhoneGap" ?
Thx