GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-12-06T21:14:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 25, 2013 Sprint 25 API, Release 3.2.0, Release 3.3.0 |
Components | iOS |
Labels | ios, label, module_label, qe-testadded, regression, triage |
Reporter | Jong Eun Lee |
Assignee | Vishal Duggal |
Created | 2013-11-27T00:24:49.000+0000 |
Updated | 2014-02-21T11:19:24.000+0000 |
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.
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
Merged into master and 3.2.x
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