PDA

View Full Version : Android Textfield,SearchField focus problem



perry_jia
9 Aug 2011, 7:49 PM
After textfield render, then call textfield.focus(), not work.
Code:

var panel = new Ext.Panel({
dockedItems: [{
xtype: 'toolbar',
dock: 'top',
title: 'c1',
items: [{
xtype: 'textfield',
listeners: {
afterrender: function(cmp) {
cmp.focus();
}
}
}]
}]
});

perry_jia
16 Aug 2011, 10:11 PM
The Sencha-Touch release note:
http://dev.sencha.com/deploy/touch/release-notes.html
(http://dev.sencha.com/deploy/touch/release-notes.html)
Known Issues

Animations on Android devices may still cause flickering
Focusing on form fields at the bottom of the screen might not work properly on Samsung Galaxy S
But i test in my Moto MB525(Android 2.3.4).
Nobody met this problem? Android bug?
Help me