Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-1119

Android: ScrollableView with height: Ti.UI.SIZE does not work

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: None
    • Component/s: None
    • Environment:

      SDK 3.3.0 G.A., Alloy 1.4.0, Android 4.4.4

      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

          Issue Links

            Activity

              People

              • Assignee:
                sliang Shuo Liang
                Reporter:
                FrancoisM François Mériaux
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration