Problem
Components aligned to the bottom (bottom: 0) do not get aligned as expected inside ScrollView for Android
Reproducible steps:
1. Run the code below
Notice that the view object is on the top of the window
Expected behavior:
Customer wants to have an object on the bottom of a ScrollView
More info:
In iOS works well.
Sample code:
var win1 = Titanium.UI.createWindow({
backgroundColor : '#fff'
});
var hull = Ti.UI.createScrollView({
width : '100%',
height : '100%',
backgroundColor : 'blue',
contentHeight:'auto',
contentWidth:'auto'
});
var fixedView = Ti.UI.createView({
width : '100%',
height : 30,
bottom : 0, //this does not work in Android
backgroundColor : 'green',
});
var label1 = Titanium.UI.createLabel({
color : '#999',
text : 'I am footer',
font : {
fontSize : 20,
fontFamily : 'Helvetica Neue'
},
width : 'auto',
bottom : 0
});
fixedView.add(label1);
hull.add(fixedView);
win1.add(hull);
win1.open();
Helpdesk
APP-231181
Tested with 1.8.0.1.v20111207090257 Xoom (3.2.1) - v8 Samsung Tab 10.1 (3.1) - rhino
Open to add label