[TIMOB-23335] Windows: Support font property on Ti.UI.TextField
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-05-09T19:10:26.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.4.0 |
Components | Windows |
Labels | qe-5.4.0 |
Reporter | Jonas Bjurhult |
Assignee | Christopher Williams |
Created | 2016-04-28T17:56:45.000+0000 |
Updated | 2016-06-27T17:53:01.000+0000 |
Description
SDK 5.4.0.v20160426000033
Setting fontSize on a TextField in Windows Phone does not work, it keeps the default size no matter what is set.
See example:
index.xml
<Alloy>
<Window class="container">
<TextField id="number" hintText="hint" keyboardType="Titanium.UI.KEYBOARD_DEFAULT"></TextField>
</Window>
</Alloy>
index.tss
'#number':{
font: {
fontSize: 50
}
}
Hello, Can you define the fontSize as
Use " instead of '.
Hi, I tried changing ' to " in my tss but it does not fix the problem
Hello, Can you try changing to your SDK to a GA version for building the app. Use the latest one 5.2.2.GA.
Same result for 5.2.2.GA, i.e still not working
Hello, I am able to reproduce this issue with given code and given steps. Setting
fontSize
on aTextField
on Windows Phone does not work. I tried settingfontSize: 50
andfontSize: 75
but it keeps the default size. Thanks *Environment*: *Device info:* Microsoft Lumia640 (Windows Phone 8.1) *Node.js Version:* 0.12.7 *npm Version:* 2.11.3 *Titanium SDKs:* 5.2.2.GA and 5.4.0.v20160429102159 *Java Development Kit Version:* 1.8.0_73 *Titanium CLI Version:* 5.0.5 *Appcelerator CLI Version:* 5.2.2 *Appcelerator Studio:* 4.5.0We currently do not support the font property on Ti.UI.TextField at all (there's a TODO sitting right in the code...). So it's not just the font size that won't work.
https://github.com/appcelerator/titanium_mobile_windows/pull/677
Verified as fixed
fontSize
property is now supported for Ti.UI.TextField on windows. Additionally,fontWeight
is also supported. Tested on: Windows 10 Pro Windows Phone 10.0 (Microsoft Lumia 640 LTE) Appc Studio: 4.7.0.201606220541 Ti SDK: 5.4.0.v20160617074028 Appc NPM: 4.2.7-2 Appc Core: 5.4.0-18 Node: v4.4.4 *Closing Ticket.*