[TIMOB-23713] Android: TextField cursor before hintText when textAlign is RIGHT
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2019-09-19T21:20:26.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, hintText, textfield |
Reporter | Michael Gangolf |
Assignee | Unknown |
Created | 2016-07-26T07:10:42.000+0000 |
Updated | 2019-09-19T21:20:26.000+0000 |
Description
When creating a TextField with alignment right and a hintText the cursor is placed on the left side of the text, which looks like it is actual text the user has to clear
var win = Ti.UI.createWindow({backgroundColor:"#fff"});
var tf = Ti.UI.createTextField({
textAlign: Ti.UI.TEXT_ALIGNMENT_RIGHT,
width:200,
height:40,
borderColor: "red",
hintText: "TestTest",
hintTextColor:"#888",
color:"#000"
});
win.add(tf);
win.open();
on iOS the cursor is on the right side which looks better for the user.
Android 6
SDK 5.3.1.GA (and 5.4.0.v20160720201924)
Unable to reproduce on 8.1.1.GA SDK. Axway Appcelerator Studio, build: 5.1.4.201909061933 macOS : 10.14.6 Node.js Version : 8.9.1 npm Version : 5.5.1 Appcelerator CLI : 7.1.1 Titanium CLI CLI Version : 5.2.1 node-appc Version : 0.2.49 Titanium SDKs : 8.1.1.GA Android API 29