Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11405] Android: TextField - Black bar appears if soft keyboard is invoked

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2013-01-09T10:53:05.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.1.0, 2013 Sprint 01 Core, 2013 Sprint 01
ComponentsAndroid
Labelsapi, qe-and100112
ReporterTamila Smolich
AssigneeIngo Muschenetz
Created2012-10-12T00:32:32.000+0000
Updated2013-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

FileDateSize
device-2012-10-11-172134.png2012-10-12T00:32:32.000+000046637

Comments

  1. Karl Rowley 2012-11-05

    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.
  2. Karl Rowley 2012-11-06

    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.
  3. Karl Rowley 2012-11-20

    I've also tried to reproduce the problem in a native app, but haven't been able to.
  4. Anshu Mittal 2013-04-10

    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

JSON Source