Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15880] iOS: Label minimumFontSize broken

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-12-06T21:14:24.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 25, 2013 Sprint 25 API, Release 3.2.0, Release 3.3.0
ComponentsiOS
Labelsios, label, module_label, qe-testadded, regression, triage
ReporterJong Eun Lee
AssigneeVishal Duggal
Created2013-11-27T00:24:49.000+0000
Updated2014-02-21T11:19:24.000+0000

Description

Description

minimumFontSize doesn't work on Ti 3.2.x

Reproduce steps

1. create mobile project (not alloy) 2. copy below source to app.js
var win = Ti.UI.createWindow({
    backgroundColor : 'white'
});

var label = Ti.UI.createLabel({
    top : 100,
    width : 300,
    height : 300,
    font : {
        fontSize: 100
    },
    borderColor : 'red',
    minimumFontSize : 10,
    text : 'This text shold be small.'
});

win.add(label);
win.open();
3. run in ios simulator

Actual result:

the label content is limited to a single line. There is no font size scaling.

Respected result:

minimumFontSize property enable font scaling to fit and forces the label content to be limited to a single line.

Attachments

FileDateSize
iOS Simulator Screen shot Nov 29, 2013 3.17.46 PM.png2013-11-29T09:20:48.000+000024951

Comments

  1. Vishal Duggal 2013-12-06

    Pull pending against master https://github.com/appcelerator/titanium_mobile/pull/5087 Backport to 3_2_X https://github.com/appcelerator/titanium_mobile/pull/5088
  2. Pedro Enrique 2013-12-06

    Merged into master and 3.2.x
  3. Paras Mishra 2013-12-09

    Label minimumFontSize is working fine,so closing the issue. Verified fix on: Device : iPhone 5s , iOS version : 7.0.2, iOS simulator: 7.0.3 SDK: 3.2.0.v20131208204843 CLI version : 3.2.0-beta OS : MAC OSX 10.9 Alloy: 1.3.0-beta ACS: 1.0.10 Appcelerator Studio, build: 3.2.0.201312052211 titanium-code-processor: 1.1.0-beta XCode : 5.0.2

JSON Source