在煎茶触摸,我们有一个小问题,一个消息。看起来,这件事情与Android 4.3。在大多数设备它的作品完美,但与Android 4.3设备上,当用户preSS按钮,消息框不会消失。
Ext.define(TestBuild.view.MyPanel',{
延伸:Ext.Panel,
配置:{
项目:
{
的xtype:按钮,
ITEMID:为myButton',
文字:用作MyButton
}
]
听众: [
{
FN:onMybuttonTap,
事件:'水龙头',
代表:#mybutton
}
]
},
onMybuttonTap:功能(按键,电子,eOpts){
的console.log(测试);
Ext.Msg.alert(TEST);
}
});
解决方案
我找到了解决办法:
添加下面一行显示警告框之前:
Ext.Msg.defaultAllowedConfig.showAnimation = FALSE;
In sencha touch we have a little problem with a messagebox. It looks that it's something with android 4.3. On the most devices it's works perfect, but on a device with android 4.3, when the user press the button, the messagebox will not disappear.
Ext.define('TestBuild.view.MyPanel', {
extend: 'Ext.Panel',
config: {
items: [
{
xtype: 'button',
itemId: 'mybutton',
text: 'MyButton'
}
],
listeners: [
{
fn: 'onMybuttonTap',
event: 'tap',
delegate: '#mybutton'
}
]
},
onMybuttonTap: function(button, e, eOpts) {
console.log("Test");
Ext.Msg.alert("TEST");
}
});
解决方案
I found the solution:
Add Following line before showing Alert Box:
Ext.Msg.defaultAllowedConfig.showAnimation = false;