sencha touch messagebox unclickable

前端 未结 3 929
栀梦
栀梦 2021-01-19 05:58

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 and

相关标签:
3条回答
  • 2021-01-19 06:24

    I found a solution:

    Ext.define('Ext.Component', {
            override: 'Ext.Component',
            show: function (animation) {
                return this.callParent([false]);
            },
            hide: function (animation) {
                return this.callParent([false]);
            }
        });
    

    I found the solution on http://www.sencha.com/forum/showthread.php?262324-Sencha-Messagebox-and-Overlay-Problems-on-HTC-One-Browser

    0 讨论(0)
  • 2021-01-19 06:32

    I got a solution here: https://www.sencha.com/forum/showthread.php?284450-MessageBox-cannot-be-closed-under-some-circumstances.&p=1040686&viewfull=1#post1040686

    Ext.override(Ext.MessageBox, {    
        hide:  function() {
           if (this.activeAnimation && this.activeAnimation._onEnd) {
            this.activeAnimation._onEnd();
           }
           return this.callParent(arguments);
       }
    }); 
    

    This works for me for touch 2.4.2

    0 讨论(0)
  • 2021-01-19 06:45

    I found the solution:

    Add Following line before showing Alert Box:

    Ext.Msg.defaultAllowedConfig.showAnimation = false;

    0 讨论(0)
提交回复
热议问题