Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6143] Android: Bottom alignment in ScrollView does not work on Android

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-04T16:45:34.000+0000
Affected Version/sRelease 1.8.0, Release 1.7.6
Fix Version/sSprint 2011-46, Release 1.8.0.1
ComponentsAndroid
Labelsmodule_scrollview, qe-testadded
ReporterFrancisco Antonio Duran Ramirez
AssigneeAllen Yeung
Created2011-11-10T10:53:58.000+0000
Updated2017-10-18T23:06:19.000+0000

Description

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

Attachments

FileDateSize
1.7.6.v20111104233055 & 1.8.0.v20111028154620 Android 2.3.3.png2011-11-10T10:53:58.000+000098703
1.7.6.v20111104233055 & 1.8.0.v20111028154620 iOS 4.3.png2011-11-10T10:53:58.000+0000119622

Comments

  1. Natalie Huynh 2011-12-07

    Tested with 1.8.0.1.v20111207090257 Xoom (3.2.1) - v8 Samsung Tab 10.1 (3.1) - rhino
  2. Natalie Huynh 2012-01-04

    Open to add label

JSON Source