Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17505] iOS: minimumFontSize does not work below a certain size

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsiOS
Labelsdefect, ios
ReporterRichard Fyffe
AssigneeUnknown
Created2014-07-03T13:17:17.000+0000
Updated2018-02-28T20:03:26.000+0000

Description

Problem Description

The minimumFontSize of a text label below 4 does not work. If we use the minimumFontSize 4 or more its working perfectly.

TESTING ENVIRONMENT:

Titanium SDK: 3.2.3.GA and 3.3.0.GA Titanium CLI: 3.3.0 OS X Version: 10.9.3 IOS Simulator: 7.1 Android API Level: 19

TEST CODE:

<Alloy>
<Window class="container">
<Label id="label"></Label>
<Label class="label1"></Label>
</Window>
</Alloy>
 
".container": {
backgroundColor: "white"
},
"Label": {
text: "This text does resize",
left: 15,
top: 100,
width: 200,
height: 50,
font:{
fontSize: 50
},
minimumFontSize: 4,
backgroundColor: "#FFFFFF"
} ,
".label1": {
text: "This text does not resize",
left: 15,
top: 200,
width: 200,
height: 50,
font:{
fontSize: 50
},
minimumFontSize: 2,
backgroundColor: "#FFFFFF"
}

$.index.open();

STEPS TO REPRODUCE:

- Create a simple Alloy project. - Update this code in index.xml and index.tss . - Run this with testing environment.

TESTING RESULT:

The first Label does resize where the minimumFontSize:4 but the second Label does not resize where the minimumFontSize:2 .

Comments

  1. Mauro Parra-Miranda 2014-08-15

    Thanks for your report! The engineering team will set the priority on this issue.

JSON Source