var win = Ti.UI.createWindow({
backgroundColor: '#000',
layout: 'vertical'
});
var view1 = Ti.UI.createScrollView({
layout: 'vertical',
contentHeight: '50%',
height: '50%',
backgroundColor: '#00f'
});
var view2 = Ti.UI.createView({
layout: 'vertical',
height: '50%',
backgroundColor: '#0f0'
});
var label1 = Ti.UI.createLabel({
text: 'ScrollView',
right: 20,
top: 10,
width: 200
});
var button1 = Ti.UI.createButton({
top: '50%',
right: 0,
width: 200,
title: 'Button 1'
});
var label2 = Ti.UI.createLabel({
text: 'View',
top: 10,
right: 20,
width: 200
});
var button2 = Ti.UI.createButton({
top: '50%',
right: 0,
width: 200,
title: 'Button 2'
});
view1.add(label1);
view1.add(button1);
view2.add(label2);
view2.add(button2);
win.add(view1);
win.add(view2);
win.open();
"View"'s behavior is, IMHO, the right one and "ScrollView" should behave same way.