Skip to content

Instantly share code, notes, and snippets.

@iskugor
Created March 12, 2012 16:04
Show Gist options
  • Save iskugor/2023001 to your computer and use it in GitHub Desktop.
Save iskugor/2023001 to your computer and use it in GitHub Desktop.
Titanium 2.0 CI: Controls not added
// 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