[TIMOB-9853] Android: hintText doesn't show in a TextField when textAlign is 'right'
GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2013-02-21T14:02:04.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | api, exalture, look1 |
Reporter | Davide Cassenti |
Assignee | Sunila |
Created | 2012-06-21T07:20:39.000+0000 |
Updated | 2017-03-29T16:09:25.000+0000 |
Description
Problem description
The hintText property of TextField doesn't display the hint text at all if the textAlign property is set to 'right'.
- Broken on Android v2.3.3
- Works on Android ICS
- Works on Android if the textAlign property is not specified or set to 'left'.
Steps to reproduce
In the following example, the left TextField shows the hintText properly. The right TextField should also show hintText of "Hinted", but does not.
{panel:title=app.js}{noformat}
var TheWindow=Ti.UI.createWindow({
layout:'horizontal',
backgroundColor:'gray',
exitOnClose:true,
navBarHidden:true
});
var LeftEdit=Ti.UI.createTextField({textAlign:'left',
left:30,
hintText:'Hinted'});
TheWindow.add(LeftEdit);
var RightEdit=Ti.UI.createTextField({textAlign:'right',
left:100,
hintText:'Hinted'});
TheWindow.add(RightEdit);
TheWindow.open();
{noformat}{panel}
Comments
JSON Source
The issue is not present using Android ICS (tested on 4.0.3). The hint text is displayed correctly on that device, while it is missing with Android 2.3.x
Notes to myself for testing: the problem does not exist in iOS; SimpleProject is the name of the test project on my machine.
This looks like an Android SDK bug. http://code.google.com/p/android/issues/detail?id=13895
This is an Android SDK Bug. See the notes
Closing with reference to the above comments.