Android Sencha Touch 1.1密码字段(两个字段显示在字段焦点上)

时间:2013-01-16 13:43:03

标签: android cordova sencha-touch

我在使用vbox布局的表单面板中使用密码字段组件。在android中,当onfocus时,密码字段显示了该字段的额外字段。我参考了以下链接,但我无法理解。 http://www.sencha.com/forum/showthread.php?125489

请指导我如何解决这个问题。谢谢。

{
     xtype:'passwordfield',
     label:'Password',
     id:'ap_pswd',
     name:'ap_pswd_name',
     labelWidth:'150px',
     width:'400px',
     required:true,
     style:'margin-left:auto;margin-right:auto;',
     },

1 个答案:

答案 0 :(得分:0)

这是浏览器的本机行为,因此您无法对此做任何事情。 您可以做的一件事是在滚动时隐藏浏览器的输入元素。

if (document.activeElement && ('blur' in document.activeElement) &&
                (document.activeElement.tagName == 'INPUT' || document.activeElement.tagName == 'TEXTAREA')) {
            document.activeElement.blur();
        }
相关问题