Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 4.5.1 (Release)
-
None
-
None
-
Affected OS(s): Google Android
Browser: Other (specify version)
Language Found: English
Description
Reproduced on Motorola Xoom and Galaxy Tab 10.1 both running Android 3.1 and Air 2.7
Use Case: The app starts up with a login screen. A user types in their username/password and hits the "enter" key on the soft keyboard (or the "login" button) and not the "hide softkeyboard button". The enter press calls actionscript that loads in the second view.
Steps to reproduce:
1. Create a Flex Mobile app with 2 views
2. The first view contains a TextInput and a button that pushes in the second view when clicked
3. The second view contains anything drawn directly on the stage (example code uses StageWebView set to 0,0 this.width, this.height)
4. Install the app to the device. Start it up.
5. Click inside the TextInput and the soft keyboard pops up
6. Type anything in and click the button (or hit the Enter key on the softkeyboard) to push in the next view
7. The component that was drawn on the stage is the same height as the screen height-softkeyboard
Actual Results:
Items drawn to the stage after a view is pushed before the soft keyboard is closed are the same height as the screen-SoftKeyboard Height
Expected Results:
The stage should be re-sized appropriately even if a view is pushed before the soft keyboard has closed.
Workaround (if any):
In the ActionScript that pushes in the next view, we fake a SOFT_KEYBOARD_DEACTIVATE event as shown below:
this.dispatchEvent(new SoftKeyboardEvent(SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE, true, false, passwordInput, null));