[TIMOB-13848] Android: TextArea loses focus when the string wraps and changes the height of the view
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.1.0, Release 3.2.0 |
Fix Version/s | n/a |
Components | Android |
Labels | Alloy, focus, tableview, textarea |
Reporter | Tyler Reid |
Assignee | Unknown |
Created | 2013-05-10T20:57:56.000+0000 |
Updated | 2018-02-28T20:03:48.000+0000 |
Description
*Problem*
When the user types anything that makes the text area wrap down to the next line, thus extending the height of the TextArea, it loses focus. The keyboard stays up but nothing shows up when keys are pressed.
*Steps to reproduce*
1. Create a new blank Alloy project
2. Add the controller, style and view.xml from the .rar file and add the code below to index.js
3. Run on Android
4. Enter text into the TextField until it wraps to the next line
5. Observe that the TextField loses focus
*index.js*
var arg = {
text: "Enter the title of your broadcast",
positiveLabel: "Continue",
negativeLabel: "Back",
}
Alloy.createController("InputDialog", arg).getView().open();
Attachments
File | Date | Size |
---|---|---|
app.rar | 2013-05-10T20:57:56.000+0000 | 1096 |
Tested and confirmed on Samsung Galaxy S2 Android 2.3.6 with Ti SDK 3.1 GA and latest 3.2 CI.