Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sencha touch messagebox unclickable

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

});
like image 660
Erwin Vaes Avatar asked Feb 14 '23 04:02

Erwin Vaes


1 Answers

I found the solution:

Add Following line before showing Alert Box:

Ext.Msg.defaultAllowedConfig.showAnimation = false;

like image 190
Rupesh Avatar answered Feb 27 '23 06:02

Rupesh