Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16944] Android: TextField hintText's font is different in passwordMask field than normal field

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-05-30T20:41:24.000+0000
Affected Version/sRelease 3.2.3, Release 3.3.0
Fix Version/sn/a
ComponentsAndroid
Labelsqe-3.3.0
ReporterPriya Agarwal
AssigneeIngo Muschenetz
Created2014-05-09T08:18:06.000+0000
Updated2014-05-30T20:41:28.000+0000

Description

1. Create Alloy Sample project and copy the code in respective file and run the app. Expected Result: 1.TextField hintText's font must be same in passwordMask field and normal field Actual Result: 1.TextField hintText's font is different in passwordMask field than normal field index.js file:
$.index.open();
index.xml file:
<Alloy>
	<Window layout="vertical" >
			<TextField id="normal"/>
			<TextField id="password"/>
	</Window>
</Alloy>
index.tss file:

"#normal":{
	keyboardType: 'DEFAULT',
	returnKeyType: 'DEFAULT',
	hintText: 'hintText for username'
},
"#password":{
	keyboardType: Ti.UI.KEYBOARD_DEFAULT,
	hintText: 'hintText for password',
	passwordMask: true,	
}
Working fine for both iOS and Android while using classic project.

Attachments

FileDateSize
ALOY1010.zip2014-05-12T17:38:19.000+00005900423

Comments

  1. Tim Poulsen 2014-05-12

    Both Classic and Alloy work as expected for me when run on the iOS simulator. Both Classic and Alloy show the different font for the password field on Android. Setting passwordMask to false, or removing that property fixes the problem. Moving this to SDK because this appears to be a platform issue not an Alloy issue. Classic project:
       var win1 = Titanium.UI.createWindow({
           title:'Tab 1',
           backgroundColor:'#fff',
           layout: 'vertical'
       });
       var tab1 = Titanium.UI.createTab({
           icon:'KS_nav_views.png',
           title:'Tab 1',
           window:win1
       });
       
       win1.add(Ti.UI.createTextField({
       	top: 50,
       	hintText: 'hintText for username'
       }));
       win1.add(Ti.UI.createTextField({
       	top: 20,
       	hintText: 'hintText for password',
       	passwordMask: true,
       }));
       win1.open();
       
  2. Tim Poulsen 2014-05-12

    Attaching an alloy project for testing
  3. Kajenthiran Velummaylum 2014-05-20

    *The bug is not reproducible:* Tested in following conditions for Alloy and Classic Projects: *Test Environment:* || *Component* || *Version* || | Appcelerator Studio | 3.3.0.201405161313 | | Titanium SDK | 3.3.0.v20140516180912 | | Alloy | 1.4.0-alpha | | CLI | 3.3.0-alpha3 | | ACS | 1.0.14 | | NPM | 1.4.10 | | Titanium-Code-Processor | 1.1.1 | | Node-ACS | 1.0.14 | *Tested Devices:* Galaxy S5 (v4.4.2) iPhone 5S (iOS 7.1.1)
  4. Priya Agarwal 2014-05-20

    Verified the FIXED with: Appc-Studio:3.3.0.201405161313 sdk:3.3.0.v20140516180912 acs:1.0.14 alloy:1.4.0-alpha npm:1.3.2 titanium:3.3.0-alpha3 titanium-code-processor:1.1.1 xcode:5.1.1 Device:Iphone5s(v7.1.1),Nexus7(v4.4.2) Font is same for both the textField normal as well as passwordMask. Hence Closing the issue as working as expected.
  5. Eric Merriman 2014-05-27

    Reopening to correct sprint

JSON Source