Created
March 12, 2012 16:04
-
-
Save iskugor/2023001 to your computer and use it in GitHub Desktop.
Titanium 2.0 CI: Controls not added
This file contains hidden or 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
// Titanium SDK version: 2.0.0 (03/11/12 21:47 e679d51), v8, Android 3.1 | |
//1.8 works fine (except WTF part) | |
var win = Ti.UI.createWindow({ | |
width: '100%', | |
backgroundColor: '#fc3', | |
height: '100%' | |
}); | |
var view = Ti.UI.createView({ | |
width: '100%', | |
backgroundColor: '#000', | |
zIndex: 1, | |
height: '10%' | |
}); | |
var button = Ti.UI.createButton({ | |
left: 3, | |
backgroundColor: '#444', | |
width: '150dp', | |
height: '55dp', | |
title: 'Testing', | |
zIndex: 10, | |
color: '#ccc' | |
}); | |
win.add(view); | |
win.add(button); | |
win.open(); | |
Ti.API.info('WTF'); | |
Ti.API.debug(win.children.length); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment