I am using sencha touch 2 PR1 .when I click on alert button the alert box which gets open does not have Ok button and its height covers entire page. here is my view
Ext.define( MyTask.view.Main , {
extend: Ext.Container ,
alias: widget.main ,
config: {
items: [
{
xtype : button ,
cls : demobtn ,
ui : round ,
margin: 10 0 ,
text: Alert ,
handler: function() {
Ext.Viewport.add(Ext.Msg);
Ext.Msg.alert( Title , The quick brown fox jumped over the lazy dog. , Ext.emptyFn);
}
}
]
}
});
and controller
Ext.define( MyTask.controller.TestController , {
extend: Ext.app.Controller ,
views: [ Main ],
refs: [
{
ref : main ,
selector: main ,
autoCreate: true,
xtype : main
},
],
init: function() {
mainPanel=this.getMain();
Ext.Viewport.add(mainPanel);
}
});
页: 1
Ext.Loader.setConfig({ enabled: true });
Ext.require([
Ext.XTemplate ,
Ext.Panel ,
Ext.Button ,
Ext.List ,
Ext.MessageBox
]);
Ext.application({
name: MyTask ,
controllers: [ TestController ],
});
Why it is not getting displayed properly? I tested on crome and ipad. thanks in advance.