[TIMOB-11405] Android: TextField - Black bar appears if soft keyboard is invoked
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-01-09T10:53:05.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.1.0, 2013 Sprint 01 Core, 2013 Sprint 01 |
Components | Android |
Labels | api, qe-and100112 |
Reporter | Tamila Smolich |
Assignee | Ingo Muschenetz |
Created | 2012-10-12T00:32:32.000+0000 |
Updated | 2013-04-10T11:17:26.000+0000 |
Description
Description:
Black bar appears above the text field if soft keyboard is invoked.
Not a regression, the behavior exists as far back as 2.1.2 at least.
Steps:
1. Run the following code:
var _window = Ti.UI.createWindow({backgroundColor: '#336699'});
var textField = Ti.UI.createTextField({
backgroundColor: '#fff',
height: 30,
top: 20,
left: 20,
right: 20
});
_window.add(textField);
_window.open();
2. Focus the text field to invoke the soft keyboard, if it's not invoked yet.
Expected:
Should not see black bar above the text field
Actual:
Black bar appears
Attachments
File | Date | Size |
---|---|---|
device-2012-10-11-172134.png | 2012-10-12T00:32:32.000+0000 | 46637 |
This seems to occur when the text box is too small. If I make the height 40 in the example there is no problem on Nexus 7.
I could not reproduce the problem on Samsung Galaxy S2 running Android 2.3.6. I'm also unable to reproduce on the Android emulator running Android 2.2.
I've also tried to reproduce the problem in a native app, but haven't been able to.
Tested with: SDK: 3.1.0.v20130409124549 Studio:3.1.0.201304011603 Device: Nexus7(v 4.1) OS: OSX 10.7.5 Increasing the height of the textbox solves the problem