煎茶触摸消息框不可点击 [英] sencha touch messagebox unclickable
本文介绍了煎茶触摸消息框不可点击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在煎茶触摸,我们有一个小问题,一个消息。看起来,这件事情与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;
这篇关于煎茶触摸消息框不可点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文