[AC-1119] Android: ScrollableView with height: Ti.UI.SIZE does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2014-08-11T03:11:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | alloy, android, scrollableView |
Reporter | François Mériaux |
Assignee | Shuo Liang |
Created | 2014-08-10T13:10:36.000+0000 |
Updated | 2016-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
File | Date | Size |
---|---|---|
scrollable_android.png | 2014-08-10T13:10:37.000+0000 | 54331 |
scrollable_ios.PNG | 2014-08-10T13:10:37.000+0000 | 20457 |