[TIMOB-8297] Android: Having height property in textfield makes the textfield to not be vertically centered
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-04-26T07:13:21.000+0000 |
Affected Version/s | Release 1.8.2 |
Fix Version/s | 2013 Sprint 09 |
Components | Android |
Labels | n/a |
Reporter | Varun Joshi |
Assignee | jithinpv |
Created | 2012-03-25T16:09:57.000+0000 |
Updated | 2017-03-24T18:13:56.000+0000 |
Description
aligning text inside a TextField vertically centered does not work if height property is used.
Please run the attached sample app to reproduce this issue:
{noformat}
var win = Ti.UI.createWindow({backgroundColor: '#000000'});
var textField = Ti.UI.createTextField({
backgroundColor: '#444444',
borderColor: '#999999',
borderRadius: 3.5,
borderWidth: 1,
color: '#ffffff',
font: {
fontFamily: 'Helvetica',
fontSize: 16,
fontWeight: 'bold'
},
height: 35,
opacity: 0.7,
paddingLeft: 8,
paddingTop: 8,
value: "John Doe",
width: 285
});
win.add(textField);
win.open();
{noformat}
It works with height removed increasing textfield height will make this bug reappear.
it can't be treated as a bug. increase the value of height property, it woks fine. try height:100 Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) Device: Samsung galaxy s duos Android version: 4.0.4 jithinpv
invalid Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Android Emulator: Android SDK version: 2.2
Closing ticket as invalid with reference to the above comments.