Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12264] CLI: JSS font-* properties do not work with new CLI

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-05-13T20:06:09.000+0000
Affected Version/sRelease 3.0.0
Fix Version/s2013 Sprint 10 JS, 2013 Sprint 10, Release 3.1.1, Release 3.2.0
ComponentsCLI
Labelscore, qe-closed-3.1.1, regression
ReporterAmuktha Akkinepally
AssigneeChris Barber
Created2013-01-10T14:40:43.000+0000
Updated2013-06-01T00:02:48.000+0000

Description

In an app with the below app.js and app.jss there is an issue with font size. When trying to change the font size after cleaning it does not work. It stays in a same no matter what size is given as font size. It works fine with Ti SDK 3.0.0 and XCode 4.5.1 but does not work with Ti SDK 3.0.0 and XCode 4.5.2. Again Ti SDK 2.1.4 and XCode 4.5.2 works as well. Only on the prime combination of 3.0.0 and 4.5.2 does not work.

app.js

var win = Ti.UI.createWindow({ 
    backgroundColor: 'white'
})
var someLabel = Titanium.UI.createLabel({ 
    id: "somelabel-"+Titanium.Platform.osname,
});
win.add(someLabel);
win.open();

app.jss

#somelabel-iphone {
    text: 'iphone';
    font-size: 40;
    color: blue;
}
#somelabel-ipad {
   text:'ipad';
   font-size: 40;
   color:red;
}

Steps to reproduce:

1. Run the app with Ti SDK 3.0.0 and XCode 4.5.2 2. Change the font size in app.jss 3. Clean the project 4. Run the app on iphone simulator Expected Result: Font size should change. Actual Result: Font size does not change.

Comments

  1. Pablo Bernardi 2013-04-26

    Same issue here, same test. tested with version 3.0.2, 3.1.0 all with the same result, attributes font-* doesn't apply to the object.
  2. Chris Barber 2013-05-13

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/4255 3.1.x pull request: https://github.com/appcelerator/titanium_mobile/pull/4256
  3. Federico Casali 2013-06-01

    Verified as fixed. Environment: Appcelerator Studio 3.1.1.201305312408 Titanium SDK 3.1.1.v20130531143904 CLI 3.1.1-alpha Alloy 1.1.3-alpha Titanium-Code-Processor 1.1.3-alpha4 Closing.

JSON Source