View Full Version : [CLOSED] Issue with cursor focus on Input/Textarea when an overlay appears (Android)

22 Jun 2011, 3:00 AM
Sencha Touch version tested:


Platform tested against:

Android 2.2 (HTC Desire): BUG, see description below
iPhone 4.2.1: works fine!
Blackberry Playbook: works fine!
Windows 7 (Google Chrome): works fine!


If an text-input element has the focus and an overlay appears (like a alert popup or even the selectoptions of a selectbox), the textfield is still displayed in the front.

Steps to reproduce the problem:

Use your mobile browser to navigate to the Kitchensink
Go to "User Interface" ==> "Forms" ==> "Basic"
Type some text into the fields "Url" or "Bio" and click on "Birthday" or "Rank" (maybe you have to scroll the page a little bit so that the overlay shows up where the inputfield is).

Screenshot or Video:
Tested in the Kitchensink:
http://img861.imageshack.us/img861/4722/bugzindex5kitchensink.th.png (http://img861.imageshack.us/i/bugzindex5kitchensink.png/)

...or with an popup in my application:
http://img706.imageshack.us/img706/3702/bugzindex4alert.th.png (http://img706.imageshack.us/i/bugzindex4alert.png/)

22 Jun 2011, 3:05 AM
(Sorry for the mistake in the title. It should be "if" instead of "when")

27 Sep 2011, 5:18 PM
I have seen this mostly on HTC devices. I have tried blur-ing the fields Ext.getCmp("id").blur()
I have tired disabling the form when the alert mask pops up and re-enabling the form when it goes away.

I am still seeing inconsistent results.

Has anyone seen this and do they have a solution?

Happens on HTC Incredible, HTC Incredible 2, HTC EVO

So frustrated....

18 Jan 2012, 12:48 AM
I observed the same thing on HTC Sensation and Desire. Disabling the form before the MsgBox and enabling it back afterward solves this. It makes the code very messy though...

26 Jan 2012, 2:12 AM
When a text field has focus, and the parent panel(fullscreen) has vertical scroll enabled(lets say I have a panel->formpanel), the fields position is not updated. It will overlap the other fields.

Workaround: by "not" having the parent panel scroll enabled, and enabling scroll on formpanel~o)

HTC Desire Android 2.3.3 ST1.1.1

20 Feb 2013, 2:19 AM
This issue comes in Android 4.0.1 (ICS) also. The focus remains when we scroll and while moving to some other screen. The full screen looks messy coz of this issue.