In iOS 7 label text is partially hiding (16dp). Same label looks good in iOS 6.
If you changed the height of the label (increased one point), it looks good in iOS 7. Attached are screenshots (iOS 6 & iOS7) for wider info.
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({
backgroundColor : '#fff',
layout : 'vertical'
});
var label1 = Titanium.UI.createLabel({
top:'30dp',
color : '#000',
width : '30%',
height : '17dp',//17dp will work fine in iOS7
text : 'I am Window 1 and it is long text',
backgroundColor : '#ccc',
font : {
fontSize : 14,
fontFamily : 'Helvetica Neue'
},
textAlign : 'left'
});
win.add(label1);
var label2 = Titanium.UI.createLabel({
top:'30dp',
color : '#000',
width : '40%',
height : '16dp',//16dp will fail in iOS7
text : 'I am Window 1 and it is long text',
backgroundColor : 'yellow',
font : {
fontSize : 14,
fontFamily : 'Helvetica Neue'
},
textAlign : 'left'
});
win.add(label2);
win.open();
relates to TIMOB-15086
Pull pending against master https://github.com/appcelerator/titanium_mobile/pull/4868
Tested and Verified fix with: OSX: 10.8.5 Xcode:5.0 Appcelerator Studio: 3.2.0.201311122045 SDK: 3.2.0.v20131112180422 acs:1.0.7 alloy:1.3.0 npm:1.3.2 titanium:3.2.0 titanium-code-processo:1.0.3 Device: iOS7(v7.0.3)-iPodTouch1 Simulator- iPhone Retina(3.5-inch) iOS 7.0