Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8437] Android: TextField layout bug on tablet

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-10-15T15:57:14.000+0000
Affected Version/sRelease 1.8.2, Release 2.0.1
Fix Version/sn/a
ComponentsAndroid
LabelsSupportTeam, api, exalture
ReporterEduardo Gomez
AssigneePing Wang
Created2012-03-30T07:14:28.000+0000
Updated2017-03-21T21:34:49.000+0000

Description

Issue

When using the texfield on android tablet in the following way, the background of the textfield and its cursor becomes invisible. Modal property true should cause the issue.

Tested on

Droid Razr 2.3.5 > non affected Asus Transformer Tf101 with honeycomb(3.1) > affected

Repro sequence

/**
 * @author Carlo Blanco Benitez
 */
var win = Ti.UI.createWindow({
	backgroundImage:'guide_fond_notice.png',//backgroundImage attached
	navBarHidden:true,
	exitOnClose:true,
	//modal:true,//having modal enabled
	backgroundColor:'black',
	top:'0dp',
	left:'0dp',
	right:'0dp',
	bottom:'0dp'
});

var wrapper = Ti.UI.createView({
	top:'0dp',
	left:'0dp',
	right:'0dp',
	bottom:'0dp'
});
win.add(wrapper);

var textField = Ti.UI.createTextField({
	color:'black',
	width:'100dp',
	height:'50dp',
	returnKeyType: Titanium.UI.RETURNKEY_SEARCH,
	autocorrect:false
});
wrapper.add(textField);

win.open();

Attachments

FileDateSize
guide_fond_notice.png2012-05-03T07:47:32.000+0000723577
modal_false_or_null.txt2012-05-09T07:36:18.000+00002735
modal_true.txt2012-05-09T07:36:18.000+00006359
with_modal_false_or_none.png2012-05-02T10:26:19.000+0000825402
with_modal_true.png2012-05-02T10:26:19.000+0000823881

Comments

  1. Ping Wang 2012-04-17

    Can not reproduce on either master or 1.8.2. Tested on ASUS Transformer (3.1).
  2. Ping Wang 2012-05-02

    Eduardo, did you run the test case attached in Description? That test case has totally different screenshots than what you attached. And in that test case, no matter modal is set as true or false, the text field and its cursor are always visible.
  3. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source