Details
Description
Vertical label height decreases in iOS 7 specifically in alloy.
Steps to Reproduce :
1. Copy and paste the below code in newly created alloy project.
index.xml:
<Alloy>
|
<Window class="container" layout="vertical">
|
<Label id="countdownMainValue" borderColor="red">00</Label>
|
<Label id="countdownMainLabel">Days</Label>
|
</Window>
|
</Alloy>
|
index.tss:
"container" : {
|
layout: "vertical",
|
width: Ti.UI.FILL,
|
height: Ti.UI.SIZE
|
},
|
|
"#countdownMainValue" : {
|
height: Ti.UI.SIZE,
|
top: 0,
|
font: {
|
fontFamily: "ProximaNovaSoft-Regular",
|
fontSize:"150dp"
|
},
|
color: "#119ca6",
|
},
|
"#countdownMainLabel[platform=ios]" : {
|
font: {
|
fontFamily: "ProximaNovaSoft-Regular",
|
fontSize:"24dp"
|
},
|
color: "#119ca6",
|
top: "-50dp",
|
}
|
2. Run on iOS 6 and iOS 7 device and see the difference.
Note: This behavior is not shown in Classic Titanium. Please find attachments of iOS 6 and iOS 7.