2014-01-09 185 views
4

在sencha touch中,我們遇到了一個小小的消息框問題。它看起來是與android 4.3的東西。在大多數設備上它是完美的,但在具有android 4.3的設備上,當用戶按下按鈕時,消息框不會消失。sencha touch messagebox unclickable

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"); 
} 

}); 
+0

檢查,如果回調被觸發: Ext.Msg.alert( '標題',' TEST',function(){console.log('button press'); }); –

+0

我已經測試過,但在HTC(Android 4.3)上不起作用。在Eclipse的其他手機上,我看到了記錄文本。在我看來,這是Android 4.3和Sencha Touch的組合。 –

回答

6

的解決辦法,我找到了解決辦法:

添加顯示警告框前行之後:

Ext.Msg.defaultAllowedConfig.showAnimation =假;