Last active
December 16, 2015 12:59
-
-
Save stevenscg/5438481 to your computer and use it in GitHub Desktop.
Alloy 1.1.1 style merge/override issue Create a new Titanium mobile app with SDK 3.1.0.GA and Alloy 1.1.1. Update or create the files below and build for iphone 6.1. If "TextArea" is defined in app.tss, some or all of app.tss is skipped. "TextArea" was fine for Alloy 1.0.0 and 1.1.0.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Window: { | |
barColor: '#000', | |
barImage: 'header.png', | |
backgroundColor: "#fff" | |
}, | |
TextArea: { | |
autocapitalization: Ti.UI.TEXT_AUTOCAPITALIZATION_NONE, | |
autocorrect: false | |
}, | |
Label: { | |
color:'#000', | |
height:Ti.UI.SIZE, | |
width:Ti.UI.SIZE, | |
backgroundColor: 'gray' | |
}, | |
'.container': { | |
backgroundColor: '#fff' | |
}, | |
'.darkContainer': { | |
backgroundColor: '#313131' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doClick(e) { | |
alert($.label.text); | |
} | |
$.index.open(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
".container": { | |
backgroundColor: "#313131" | |
}, | |
Label: { | |
font: { | |
fontSize: "24dp" | |
}, | |
width: Ti.UI.FILL, | |
color: 'red' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Alloy> | |
<Window class="container"> | |
<Label id="label" onClick="doClick">Hello, World</Label> | |
</Window> | |
</Alloy> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment