[TIMOB-20450] Android: Font in textfield isn't vertically aligned properly so it will fall off screen with a bigger font
| GitHub Issue | n/a |
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2019-12-04T23:38:44.000+0000 |
| Affected Version/s | Release 5.1.2 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | engTriage, texfield |
| Reporter | Rene Pot |
| Assignee | Unknown |
| Created | 2016-02-19T12:20:41.000+0000 |
| Updated | 2019-12-04T23:38:44.000+0000 |
Description
I have a textfield with 28dp height, and the fontSize of the textfield is 14dp. (14sp gives same result)
Attached is a screenshot of the result. It doesn't align properly and you can't see the top part of the string
Attachments
I have the same problem. Always Android 5.X.
Good to notice indeed. My 5.0.2 and 5.1 I mentioned are Ti.SDK
Hello [~topener], Try a textfield without setting a height. The textField height will automatically set according to the font size. Thanks.
var textField = Ti.UI.createTextField({ borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED, color: '#336699', borderColor : '#000', backgroundColor : 'transparent', top: 100, left: 10, width: 250, font: { fontSize: '14dp' }, });Thanks, but that only works sometimes. This does require the textfield to be taller/higher than actually intended.
After speaking to Rene, closing as invalid.