Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8297] Android: Having height property in textfield makes the textfield to not be vertically centered

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2013-04-26T07:13:21.000+0000
Affected Version/sRelease 1.8.2
Fix Version/s2013 Sprint 09
ComponentsAndroid
Labelsn/a
ReporterVarun Joshi
Assigneejithinpv
Created2012-03-25T16:09:57.000+0000
Updated2017-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.

Comments

  1. jithinpv 2013-03-19

    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
  2. jithinpv 2013-04-26

    invalid Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Android Emulator: Android SDK version: 2.2
  3. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source