Skip to content

Instantly share code, notes, and snippets.

@alg
Created April 3, 2013 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alg/5300640 to your computer and use it in GitHub Desktop.
Save alg/5300640 to your computer and use it in GitHub Desktop.
var w = Ti.UI.createWindow({ backgroundColor: 'red' });
var sv = Ti.UI.createScrollView({
width: '100%',
height: '100%' });
w.add(sv);
var wr = Ti.UI.createView({
top: 10,
left: 10,
right: 10,
bottom: 10,
layout: 'vertical',
backgroundColor: '#ccc' });
wr.add(Ti.UI.createView({
backgroundColor: 'yellow',
height: 400
}));
var inv = Ti.UI.createView({
backgroundColor: 'green',
top: 10,
height: 300,
visible: false
});
wr.add(inv);
sv.add(wr);
w.open();
setTimeout(function() {
inv.visible = true;
wr.height = Ti.UI.SIZE;
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment