Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1119] Android: ScrollableView with height: Ti.UI.SIZE does not work

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2014-08-11T03:11:19.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsalloy, android, scrollableView
ReporterFrançois Mériaux
AssigneeShuo Liang
Created2014-08-10T13:10:36.000+0000
Updated2016-03-08T07:37:28.000+0000

Description

On Android, setting the height of a ScrollableView to Ti.UI.SIZE does not make the ScrollableView adapts to its children view.
    <Alloy>
	<Window class="container">
		<ScrollableView height="Ti.UI.SIZE" backgroundColor="green">
			<View height="Ti.UI.SIZE">
				<Label height="100dp" text="Label 1" backgroundColor="red"/>
			</View>
			<View height="Ti.UI.SIZE">
				<Label height="200dp" text="Label 2" backgroundColor="blue"/>
			</View>
		</ScrollableView>
	</Window>
</Alloy>
The height of the ScrollableView behaves as it was set to Ti.UI.FILL. On iOS, the problem does not occur, see attached screenshots. This issue might be linked to TIMOB-16878

Attachments

FileDateSize
scrollable_android.png2014-08-10T13:10:37.000+000054331
scrollable_ios.PNG2014-08-10T13:10:37.000+000020457

Comments

  1. Shuo Liang 2014-08-11

JSON Source